朱科技 当前离线
一级士官
newswan 当前离线
上尉
@echo off setlocal enableDelayedExpansion set root=C:\Users\Administrator\Desktop\0523\ pushd "%root%" for /f "usebackq delims=" %%a in (`dir /b /ad | %gnupath%\sort -n`) do ( del next.bat if defined pre ( echo start "" "%root%\%%a" )> !pre!\next.bat set pre=%%a ) popd复制代码
TOP
xp3000 当前离线
少尉
@echo off setlocal enabledelayedexpansion set "str=C:\Users\Administrator\Desktop\0523\" for /f "tokens=1,* delims=:" %%a in ('dir /a:d /b *^|findstr /n .') do ( set m=%%a&set /a n=!m!+1 echo start "" "!str!!n!">"!m!\打开下个文件夹.bat" ) echo start "" "!str!1">"!m!\打开下个文件夹.bat" pause复制代码
smss 当前离线
中尉
@Echo off&SetLocal EnableDelayedExpansion for /f "delims=" %%i in ("%cd%")do set n=%%~ni&set q=%%~dpi set/a m=%n%+1&start "" "!q!!m!"&move %0 "!q!!m!" pause复制代码