scripting:api:wsh-arguments:count

Count

Property of IWshArguments

Returns the number of command-line parameters belonging to a script (the number of items in an argument's collection

Read-Only Property of type long

var nVal = WshArguments.Count;

==== Visual Basic Script ====

nVal = WshArguments.Count

==== C++ ====

long nVal;
HRESULT hr = WshArguments.get_Count(&nVal);

===== See Also ===== IWshArguments