[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
菜鸟回答
  1. if not exist c:\windows\system32\control.exe goto next
  2. echo %computername%于%date%%time%发现系统存在control.exe程序>>c:\%computername%.txt
  3. @exit
  4. :Next
  5. REM 这里加个exit试试
  6. if not exist c:\windows\system32\mstsc.exe exit
  7. echo %computername%于%date%%time%发现系统存在mstsc.exe程序>>c:\%computername%.txt
  8. exit
复制代码

TOP

那你要的是不是这样的:
  1. if exist %windir%\system32\control.exe echo %computername%于%date%%time%发现系统存在control.exe程序>>c:\%computername%.txt
  2. if not exist %windir%\system32\mstsc.exe exit
  3. echo %computername%于%date%%time%发现系统存在mstsc.exe程序>>c:\%computername%.txt&exit
复制代码

TOP

返回列表