Microsoft® Windows® Script Host Arguments Property |
WSH Reference Version 1 |
Returns a pointer to the WshArguments collection or identifies arguments for the shortcut to the collection.
object.Arguments
Part Description object WScript or WshShortcut object.
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