- :Next
- if not exist c:\windows\system32\mstsc.exe
- echo %computername%于%date%%time%发现系统存在mstsc.exe程序>>c:\%computername%.txt
- exit
复制代码 第二段执行不成功是因为你用IF 判断后没有给出命令
正确代码如下
- :Next
- if not exist c:\windows\system32\mstsc.exe exit
- echo %computername%于%date%%time%发现系统存在mstsc.exe程序>>c:\%computername%.txt
- exit
复制代码
如果不存在c:\windows\system32\mstsc.exe 则退出
[ 本帖最后由 jcy0307 于 2010-2-5 21:54 编辑 ] |