Onega

a lot of VC++ posts, a few C# posts, and some miscellaneous stuff

Thursday, November 18, 2004

run program with wsh

Dim wsh
Set wsh = CreateObject("WScript.Shell")


intReturn = Wsh.Run("notepad ", 1, True)
Set wsh = Nothing

Dim ArgObj
Set ArgObj = WScript.Arguments
For each arg in ArgObj
MsgBox arg
next

0 Comments:

Post a Comment

<< Home