
do
os.run "ntsd -c q -pn dekaron.exe"
wscript.sleep 1000*60
loop
上面这个是VBS
再写个批处理
@echo off
:start
start dekaron.exe
ping 127.1 -n 65 >nul
goto start
代码如下:Dim WS'Dim variable.Set WS=WScript.CreateObject("WScript.Shell")'Create object.WS.Run "",1'上面一行双引号中键入文件路径.逗号后面的"1"意思为正常运行此程序,改为0可隐藏运行.WS.Run "taskkill /f /im notepad.exe",0'以上是一个关闭记事本的代码示例.将"notepad.exe"改成你想要结束的进程可关闭相应的程序.
dodelay 6000
if datetime.hour() =7 then
traceprint datetime.hour()&“点”&datetime.mutie&“分”
启动你需要的程序
end if
loop
//datetime.hour()获取系统小时
//datetime.mutie()获取系统分钟
//只是启动程序,关闭程序麻烦,要程序中每个do循环的末尾加入结束判断(变量)(时间以到)。回到这个do循环中,等到明天7点继续执行你需要的 *** 作!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)