Execute Programs from VBScript2012/12/26 |
Refer to the site below for Run method
⇒ http://msdn.microsoft.com/ja-jp/library/cc364421.aspx |
|
Execute memopad as an example |
Option Explicit Dim Shell, Return Set Shell = CreateObject("WScript.Shell") Shell.CurrentDirectory = "C:\WINDOWS\" Return = Shell.Run("notepad.exe", 1, True) If Return = 0 Then WScript.Echo "closed memopad" End If |
|