77七 当前离线
中校
@echo off for /r /d %%d in (*) do ( for %%a in ("%%d\*.bat") do ( call "%%a" timeout 3 >nul ) ) rem shutdown -f -s -t 60 exit rem 被调用bat格式 @echo off cd /d "%~dp0" rem code ... exit /b rem 被调用的bat,不要以exit 退出,改为以exit /b 退出复制代码
TOP
bat设置了自删除
call "%%a" del "%%a"复制代码
@echo off for /r /d %%d in (*) do ( for %%a in ("%%d\*.bat") do ( setlocal call "%%a" del "%%a" endlocal timeout 3 >nul ) ) rem shutdown -f -s -t 60 exit复制代码