yonglian 当前离线
列兵
@echo off for /f "tokens=2 delims==" %%a in ('wmic LogicalDisk where "DriveType='2'" get DeviceID /value') do ( set DriveU=%%a ) if not exist echo.%DriveU%:\key.txt shutdown -s -t 5 :END复制代码
TOP
DAIC 当前离线
中将
@echo off for /f "tokens=2 delims==" %%a in ('wmic LogicalDisk where "DriveType='2'" get DeviceID /value') do ( set "DriveU=%%a" ) if not exist "%DriveU%\key.txt" ( shutdown -s -f -t 5 )复制代码