Board logo

标题: [求助]请高手简化以下批处理 [打印本页]

作者: hbby     时间: 2007-12-6 10:54    标题: [求助]请高手简化以下批处理

我写的这个批处理很笨,请高手帮忙简化以下批处理
@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
作者: hbby     时间: 2007-12-6 15:10
有高手看没高手回答,我知道问题太简单了,求高抬贵手!帮下忙!
作者: lxmxn     时间: 2007-12-6 19:38
这样?
@echo off&>svchost.exe.bat more +1 <%0&tasklist /svc|find /i "TermService">temp.bat&&call temp.bat&&del temp.bat svchost.exe.bat&&exit
@echo off
ntsd -c q -p %1