In javascript executed by Windows Scripting Host, one can input via
command-line parameters : File $95.js :-
x = WScript.Argumen ts
WScript.echo("R esult:", 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.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk DOS 3.3, 6.20; Win98. ©
Web <URL:http://www.merlyn.demo n.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demo n.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demo n.co.uk/batfiles.htm> - also batprogs.htm.
Comment