BS0小陈 当前离线
一级士官
@echo off setlocal enabledelayedexpansion set /a num=0 for /r %~dp0 %%i in (*.txt) do ( echo %~dp0%%~nxi set "name=%~dp0%%~nxi" :aa if not exist %name% ( set "name=%~dp0%%num%%~nxi" goto aa ) else ( set /a num=0 echo move ) echo !name! ) pause复制代码
评分人数
lifei259 当前离线
二级士官
TOP
悬崖之树 当前离线
上尉
@echo off if not exist %qdj% (echo ok) pause复制代码
if not exist (echo ok)复制代码
terse 当前离线
中将
DAIC 当前离线
@echo off setlocal enabledelayedexpansion set /a num=0 for /r %~dp0 %%i in (*.txt) do ( echo %~dp0%%~nxi set "name=%~dp0%%~nxi" if not exist %name% ( echo 111) else ( echo 222 ) echo !name! ) pause复制代码
apang 当前离线
上将
if 1==1 ( echo 11 ) else ( echo 22 )复制代码
if not exist %name% ( echo 111)复制代码
if not exist %name% ( echo 111) else ( echo 222 )复制代码