views:

58

answers:

1

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.

A: 

Check WScript.Arguments.

SLaks