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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running an EXE command in a VBScript file

Status
Not open for further replies.

scloan

MIS
Feb 17, 1999
9
US
I am trying to run an EXE file within VBScript but I don't know how. I am using the script file to map drives, and then I would like to execute an external program "Audit32.EXE". Can anyone tell me how to do this? Thanks in advance for any help you can give.
 
This might work :

Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.Run "yourapp.exe"

--------------------------------------------------------------------
--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top