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

Passing Parameters to a VBS script

Status
Not open for further replies.

kajaeger

Programmer
Oct 5, 2001
17
0
0
US
How do you pass a parameter (or list of parameters) to a VBS script? Any help appreciated. i know how to pass parameters to Subs, but I want to pass parameters to the main program from the command-line.
Thanks!
Kimberly
 

kajaeger,

Set objArgs = Wscript.Arguments
count = objArgs.count
param1 = objArgs(0)
param2 = objArgs(1)
..
..


fengshui1998


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top