WshArguments.Item

The Item property contains the natIndexth command-line parameter as a string. It is the default property.

Syntax

Arguments(natIndex)
Arguments.Item(natIndex) = strArgument
 

Example

Set oArgs = Wscript.Arguments.
Wscript.Echo oArgs(0)
Wscript.Echo oArgs.Item(0)

See Also

Wscript.Arguments property