Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open an exe file

Status
Not open for further replies.

tinoco

IS-IT--Management
Feb 16, 2005
49
ES
Hi!
I'm trying to use vbscript to open an exe file but its not working!!
I think i'm not using the correct code..
witch is the sintaxe to open a file located in
"c:\program files\program name\*.exe"?

thanks
 
open? do you mean start?

WshShell.Run str2file2run, 1, True 'wait for the thread to finish before running rest of script, blocked method call

WshShell.Run str2file2run, 1, False '...
 
I think i'm not using the correct code
Which code ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top