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

Parameter within a Shell Script Run command

Status
Not open for further replies.

cmv131

MIS
Feb 16, 2005
158
US
Is is possible to pass parameters into a shell.run command?

I want to setup a VBS to run a program that requires 3 or 4 switches to do what I need it to do and have been receiving errors when I attempt it.

Any help (or examples) is appreciated
 
Yes it is possible. It is all about the "s and having them placed correctly. Use WScript.Echo before you call the .Run to be sure that your command is correct.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
have been receiving errors
Which error message(s) with 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
 
Silly me...All is better now. I had some minor syntax errors..A combination of a few to many quotes / chr(34)s
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top