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!

VBSscript to run an application

Status
Not open for further replies.

selenus

MIS
Apr 11, 2004
86
LV
I need vbscript to run an application, with specified arguments(console program, use few arguments).
I find some code, but it not used arguments:

Dim MyShell
Dim shell_cmd

shell_cmd = "C:\Program Files\Windows NT\wordpad.exe"
set MyShell = CreateObject("WScript.Shell")
MyShell.Run shell_cmd, 1, 1

Regards,
S.
 
MyShell.Run Chr(34) & shell_cmd & Chr(34) & " your arguments here", 1, 1

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top