passing arguments to javascript through cscript on the command line

Posted by chuck taylor on Stack Overflow See other posts from Stack Overflow or by chuck taylor
Published on 2010-06-16T14:50:53Z Indexed on 2010/06/16 14:52 UTC
Read the original article Hit count: 270

Filed under:
|

I have a small command line javascript routine that I usually run from the command line using cscript in windows. I'd like to be able to pass in arguments hopefully along the lines of...

%:>cscript doSomethingToFile.js FileInQuestion.txt

Any insight on how to do this? Thanks much.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about cscript