Aug 6, 2003 #1 sentmemail MIS Joined Sep 12, 2002 Messages 282 Location SG hi, how can i start a .exe program using .vbs ? thanks
Aug 6, 2003 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Try something like this: Code: Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "\path\to\prog.exe arg1 arg2 ... argN" The syntax: object.Run strCommand, intWindowStyle, bWaitOnReturn Hope This Help PH. Upvote 0 Downvote
Try something like this: Code: Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "\path\to\prog.exe arg1 arg2 ... argN" The syntax: object.Run strCommand, intWindowStyle, bWaitOnReturn Hope This Help PH.
Aug 6, 2003 Thread starter #3 sentmemail MIS Joined Sep 12, 2002 Messages 282 Location SG thanks PHV.. how can i find out what are the methods (eg. run) that can be used with WshShell ?? Upvote 0 Downvote
Aug 7, 2003 #4 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Feel free to read the FAQ... Dilettante has responded here: faq329-3578 Hope This Help PH. Upvote 0 Downvote
Aug 7, 2003 Thread starter #5 sentmemail MIS Joined Sep 12, 2002 Messages 282 Location SG thanks... btw, do you have a script that allow me to check whether a specific hotfix is installed on 100 computers? Upvote 0 Downvote
thanks... btw, do you have a script that allow me to check whether a specific hotfix is installed on 100 computers?
Aug 7, 2003 Thread starter #6 sentmemail MIS Joined Sep 12, 2002 Messages 282 Location SG do you know why Set WshShell = WScript.CreateObject("WScript.Shell" WshShell.Run "\path\to\prog.exe arg1 arg2 ... argN" runs when i double click on the .vbs file but doesn't run when i use it as a logon script? Upvote 0 Downvote
do you know why Set WshShell = WScript.CreateObject("WScript.Shell" WshShell.Run "\path\to\prog.exe arg1 arg2 ... argN" runs when i double click on the .vbs file but doesn't run when i use it as a logon script?