D
Dr John Stockton
In javascript executed by Windows Scripting Host, one can input via
command-line parameters : File $95.js :-
x = WScript.Arguments
WScript.echo("Result:", x.length, typeof x, x[1], "OK")
Prompt>cscript //nologo $95.js 66 77 88
Result: 3 object 77 OK
The Arguments are 0-based.
Can one read/write Environment variables, and if so how? An answer for
VBscript could be useful, as well or in lieu.
Aside : <FAQENTRY> 2.11 : "over 5 years" is IMHO ambiguous. Suggest
"more than 5 years" or "for 5 years", whichever is meant.
command-line parameters : File $95.js :-
x = WScript.Arguments
WScript.echo("Result:", x.length, typeof x, x[1], "OK")
Prompt>cscript //nologo $95.js 66 77 88
Result: 3 object 77 OK
The Arguments are 0-based.
Can one read/write Environment variables, and if so how? An answer for
VBscript could be useful, as well or in lieu.
Aside : <FAQENTRY> 2.11 : "over 5 years" is IMHO ambiguous. Suggest
"more than 5 years" or "for 5 years", whichever is meant.