windows定时VBS执行批处理命令脚本

duanxin.vbs
name="F:\wamp\www\dtoa\bookingRoom\admin\php-duanxin.bat"
set ws=CreateObject("wscript.shell")
set fso=CreateObject("Scripting.FileSystemObject")
while 1
set f=fso.getfile(name)
ws.run f.shortpath,0
wscript.sleep 1000*3
wend

定时执行php程序脚本

start /min /b F:\wamp\bin\php\php5.5.12\php.exe   F:\wamp\www\dtoa\bookingRoom\admin\common\sendTelMsg.php

你可能感兴趣的:(windows定时VBS执行批处理命令脚本)