Sub Main Dim cnte Dim cnt Dim delay Dim time Dim onetime onetime = 9999999 delay = 5000 time = 700 For cnte = 0 To onetime crt.screen.Send "quit " & Chr(10) & chr(13) crt.Sleep delay crt.screen.Send "quit " & chr(13) crt.Sl…
参考资料: vbs能否像其他编程语言一样,把写好的代码打包成类库以供调用呢?经过搜索和实验,发现vbs文件之间可以互相调用并共享变量,这样我们就不用再反复地编写轮子了. 以下是一个调用实例: =====1.vbs开始===== dim str str = "hello world" =====1.vbs结束===== =====2.vbs开始===== Sub include(sInstFile) Dim oFSO, f, s Set oFSO = CreateObject("…