|
想要在线精简的,可以
1、在批处理中将 pushd "X:\"改为 pushd "C:\"
2、在开始删文件前调用停止.net相关任务计划的代码
call :kill_taskscheduler
3、将以下代码放到批处理末尾,以供调用
exit
:kill_taskscheduler
for /f "tokens=2 delims=," %%f in ('schtasks /query /v /fo csv /nh') do ( call :end_taskscheduler %%f )
goto :eof
:end_taskscheduler
if /i "%~1" == "" goto :eof
set "nn=%~1"
if /i not "%nn:~,34%"=="\Microsoft\Windows\.NET Framework\" goto :eof
schtasks /end /TN "%~1"
goto :eof |
评分
-
查看全部评分
|