a6827322 当前离线
列兵
set s=0 cd part1 if exist file1.pak ( set s=1 ) if exist File1.pak ( set s=1 ) cd .. if %s%==1 ( start )复制代码
batman 当前离线
考官
荣誉版主
TOP
@echo off set /a num=0&set num=108 set "flag=a" cd part1 for %%a in (*.pak) do ( set /a n+=1 for /f %%b in ("%%~ta") do if "%%b" neq "2013-07-01" set "flag=" ) if %n% neq %num% set "flag=" cd .. pause if defined flag ( start )复制代码
@echo off set /a num=0&set /p num=请输入要检索的文件总数: set "flag=a" for %%a in (*.pak) do ( set /a n+=1 for /f %%b in ("%%~ta") do if "%%b" neq "2013-03-01" set "flag=" ) if %n% neq %num% set "flag=" if defined flag start ....复制代码
@echo off set "flag=a" for /l %%a in (1,1,100) do ( if not exist file%%a.pak ( set "flag=" ) else ( for %%b in (file%%a.pak) do ( for /f %%c in ("%%~tb") do if "%%c" neq "2013-03-01" set "flag=" ) ) ) if defined flag start ...复制代码