wen111 当前离线
列兵
for /f "delims=" %%j in ('dir /b /a-d /s D:\data\*.exe "') do ( for /f "delims=, tokens=2" %%k in ('schtasks /query /V /fo csv ^|find /i "%%j') do ( echo %%j %%k ))复制代码
Batcher 当前在线
管理员
for /f "delims=" %%j in ('dir /b /a-d /s "D:\data\*.exe"') do ( for /f "tokens=2 delims=," %%k in ('schtasks /query /v /fo csv ^| find /i "%%j') do ( echo %%j %%k ) ping -n 5 127.0.0.1 >nul )复制代码
TOP