- ·上一篇文章:VBS 不用Wscript.shell对象启动程序
- ·下一篇文章:去除打开文件提示安全警告
- ·百度中搜索更多的关于“vbs指定时间段执行程序”相关内容
- ·谷歌中搜索更多的关于“vbs指定时间段执行程序”相关内容
- ******申明******
- 本站文章内容有部分为收录网络中其他网友内容,DOS资源站不保证所有的代码都适合你使用。
- 由于编辑匆忙,有可能造成某些脚本文件出现丢失代码或代码无法运行的情况,请网友根据情况自行修改。
- 如果能将出错部分反馈给我,那就更好了。
vbs指定时间段执行程序
Option Explicit
function run(mintime,maxtime,xrun)
dim i,WshShell
Set WshShell = CreateObject("WScript.Shell" )
WshShell.CurrentDirectory = "C:\"
i=Hour(date())
if (cint(i)>mintime and cint(i)<maxtime) then
Call WshShell.Run(xrun, 1, True):exit function
end if
set WshShell=nothing
end function
dim ii
ii="C:\Progra~1\YUHENG\Client\ty_cli~1.exe"
run 7,23,ii

