摘要:
一、VBS版本:程序代码set os = createobject("wscript.shell") do os.run "test.exe" wscript.sleep 1000*60 loop二、BAT版本:程序代码@echo off :start start test.exe ping 127.1 -n 65 >nul goto start 欢迎光临 http://www.netboy365.com 阅读全文
posted @ 2011-08-07 17:07
老咸菜
阅读(659)
评论(0)
推荐(0)
摘要:
批处理和VBS检测进程是否存在并执行相关操作批处理检测进程是否存在;这个我用来检测文化进程是否存在,因为是绿色版的,很容易被关闭,所以需要检测。tasklist/nh|find/i"ClientOfWatcher.exe"ifERRORLEVEL1(startC:\watcher\ClientOfWatcher.exe)else(exit)VBS定时检测进程是否存在,如果不存在就启动进程。optionExplicitdimwmi,proc,procs,proname,flag,WshShellDoproname="ClientOfWatcher.exe" 阅读全文
posted @ 2011-08-07 17:06
老咸菜
阅读(1069)
评论(0)
推荐(0)
浙公网安备 33010602011771号