You are not logged in.
Pages: 1
In the page on VBScript command line arguments under the heading “Positional arguments” it talks about WScript.Arguments, but this collection contains both the positional and named arguments. The WScript.Arguments.Unnamed collection contains the positional arguments.
cscript.exe demo.vbs file1.txt file2.txt file3.txt
[demo.vbs]
Set colArgsUnnamed = WScript.Arguments.Unnamed
For i = 0 to colArgsUnnamed.Count - 1
WScript.Echo "Processing file " & colArgsUnnamed.Item(i)
Next
And the first link in the body of that page is broken.
Also, on VBS functions, I don’t think “VBScript mathematical functions” is an accurate title. Maybe “VBScript builtin functions” suits is better.
Offline
I have updated both those pages now.
Thanks for the suggestions
Offline
I’m not crazy about that definition: “The Unnamed property will return a collection of the unnamed arguments”.
Terminology-wise, positional arguments and unnamed arguments are the same thing, but it’s uncommon to refer to them as “unnamed arguments”. A more relatable definition: “The Unnamed property will return a collection of the positional arguments”. Just my 2c.
And that link to https://ss64.com/vb/cscript%20own is still broken.
Offline
OK good points, I have fixed those now
Thanks again
Offline
Pages: 1