Indicates whether a specific key value exists in the WshNamed object.
object.Exists(key)
The Exists method returns a Boolean value. It returns true if the requested argument was specified on the command line (otherwise, it returns false).
Consider the following information typed at the command line.
myScript.vbs /c:"WSH is a wonderful thing"
You could use these two lines of JScript code to find out whether the following command line switches were used to start the script.
WScript.Echo(WScript.Arguments.Named.Exists
("C")); WScript.Echo(WScript.Arguments.Named.Exists
("D"));
Arguments Property | WshNamed Object | WshUnnamed Object | Count Method | Item Property