Wscript.Arguments

[This is preliminary documentation and subject to change.]

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
 

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.