SimonSellick
Programmer
Hi,
I want to write some console scripts that will need stdio, so they have to run in cscript rather than wscript. I want to be able to run the scripts by typing their name plus arguments at the command line.
Is it possible to specify in the script which engine to use? If possible, I would prefer to avoid using a .wsh file, registering a default engine through the //E argument to cscript, or sending my script as an argument to cscript.
I'm not worried whether I use vbscript, jscript or some other.
Any help appreciated.
I want to write some console scripts that will need stdio, so they have to run in cscript rather than wscript. I want to be able to run the scripts by typing their name plus arguments at the command line.
Is it possible to specify in the script which engine to use? If possible, I would prefer to avoid using a .wsh file, registering a default engine through the //E argument to cscript, or sending my script as an argument to cscript.
I'm not worried whether I use vbscript, jscript or some other.
Any help appreciated.