标题:
检测explorer.exe进程批处理问题
[打印本页]
作者:
chinaxiaog
时间:
2007-12-25 18:47
标题:
检测explorer.exe进程批处理问题
检测explorer.exe进程,发现有这个进程就退出,没有就从E盘复制一个到系统目录,再运行。高手帮我看看有没有错,哪里有问题指点一下。我系统经常进不去,发现就是被病毒发explorer.exe文件删了,下面就是批处理
tasklist|find /i "explorer.exe" &&exit||call :if copy /y e:\drivers\explorer.exe %systemroot%\ ||start explorer.exe
回答好加分哦
作者:
terse
时间:
2007-12-25 19:01
你这样试试如何
Quote:
tasklist|find /i "explorer.exe"||copy /y e:\drivers\explorer.exe %systemroot%\&&start /b explorer.exe
作者:
chinaxiaog
时间:
2007-12-25 19:36
发现有这个进程就退出 怎么没有?
要全面一点。
作者:
everest79
时间:
2007-12-25 19:42
tasklist|find /i "explorer.exe" &&exit||call :if copy /y e:\drivers\explorer.exe %systemroot%\ ||start explorer.exe
||start explorer.exe
应改为
&&start explorer.exe
这次的错误判断是基于
call :if copy /y e:\drivers\explorer.exe %systemroot%\
这行命令的
作者:
terse
时间:
2007-12-25 20:20
Quote:
Originally posted by
chinaxiaog
at 2007-12-25 19:36:
发现有这个进程就退出 怎么没有?
要全面一点。
你试过没?
tasklist|find /i "explorer.exe"||copy /y e:\drivers\explorer.exe %systemroot%\&&start /b explorer.exe
tasklist|find /i "explorer.exe"成功后就不运行||后面的命令了 反之运行 copy.....成功后运行&&后面的start /b explorer.exe
作者:
Jneny
时间:
2007-12-26 00:00
Quote:
Originally posted by
everest79
at 2007-12-25 07:42 PM:
tasklist|find /i "explorer.exe" &&exit||call :if copy /y e:\drivers\explorer.exe %systemroot%\ ||start explorer.exe
call :if copy ...
请问IF前加个冒号是什么作用的?
作者:
chinaxiaog
时间:
2007-12-26 19:09
我想我写的可能不完整。
应该不是这样写出来的。
作者:
huahua0919
时间:
2007-12-27 14:08
Quote:
Originally posted by
Jneny
at 2007-12-26 12:00 AM:
call :if copy ...
请问IF前加个冒号是什么作用的?
:if 就是所定义的跳转符
类似
call :if
..
....
..
:if code
和JAVA中的匿名内部类基本相同!
作者:
chinaxiaog
时间:
2007-12-28 16:00
没用。不运行
欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/)
Powered by Discuz! 2.5