Share via


length Property (WSHArguments Object)

 

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

Syntax

object.length 

Arguments

  • object
    An argument collection object.

Remarks

The length property is a read-only integer that you use in scripts when you write in JScript. It is similar to VBScript's Count method.

Applies To:

WshArguments Object| WshNamed Object| WshUnnamed Object

See Also

Arguments Property (WScript Object)
Count Method (Windows Script Host)