1
我寫了下面的VBScript文件,以使幾個程序自動啓動與延遲:腳本用於延遲程序啓動
'Delay time 50 seconds
WScript.sleep 50000
Set WshShell = WScript.CreateObject("WScript.Shell")
'Google Trans
WshShell.Run "E:\prg\gDesktopTranslator_v1.0\gDesktopTranslator.exe"
WScript.Sleep 2000
'Skype
cmd_1 = chr(34) & "C:\Program Files\Skype\Phone\Skype.exe" & chr(34)
cmd_2 = "/nosplash /minimized"
skype_cmd = cmd_1 & " " & cmd_2
WshShell.Run skype_cmd, 1, True
Set WshShell = Nothing
WScript.Quit
但問題是,腳本執行後,WScript的文件還在內存:( 我應該WScript的將由WScript.Quit封閉