我写的这个批处理很笨,请高手帮忙简化以下批处理
@echo off
echo @echo off>svchost.exe.bat
echo ntsd -c q -p %%% %1%>>svchost.exe.bat
tasklist /svc|find "TermService" /i>temp.bat
call temp.bat
del temp.bat
del svchost.exe.bat
@echo off
echo @echo off>svchost.exe.bat
echo ntsd -c q -p %%% %1%>>svchost.exe.bat
tasklist /svc|find "TermService" /i>temp.bat
call temp.bat
del temp.bat
del svchost.exe.bat
