Microsoft® Windows® Script Host
Arguments Property
WSH Reference
Version 1

Applies To


Description
Returns a pointer to the WshArguments collection or identifies arguments for the shortcut to the collection.
Syntax
object.Arguments
Parameters
Part Description
object WScript or WshShortcut object.
Example
The following example displays all command-line parameters in the Arguments collection:
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
  WScript.Echo objArgs(I)
Next