Wscript.Arguments

The Arguments property provides a WshArguments collection object.

Syntax

Wscript.Arguments = objArguments
 

Example

' Display all command-line parameters
Set objArgs = Wscript.Arguments
For I = 0 to objArgs.Count - 1
          Wscript.Echo objArgs(I)
Next