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;
nVal = WshArguments.Count
long nVal;
HRESULT hr = WshArguments.get_Count(&nVal);