Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











Method:  WshArguments.Count

object.Count ()

The Count method returns a Long value which is the number of items in the collection.

The following VBScript code uses the Count method to set up a loop over the list of arguments passed to the current script. The output shown would be observed if the script were invoked with two command-line arguments: "abc" and "def".

Code:
For intI = 0 To WScript.Arguments.Count - 1
    WScript.Echo "Argument",intI,"is",WScript.Arguments(intI)
Next


Output:
Argument 0 is abc
Argument 1 is def

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information