This is how it is intended.pditty8811 wrote:Perhaps I'm implementing it wrong. I just copy and paste it in a .bat file and then launch it.
It sounds, like you started it by double clicking the bat file, or similar.pditty8811 wrote: It just opens and closes. Where do I put the pause command?
You might add a pause between the "cscript ..." and the "goto :eof",
although it is meant to be used from cmd.exe shell or from another batch,
so you can add the optional unnamed parameter specifying a different path:
Code: Select all
@if (true==false) /*
@echo off
cscript //nologo //e:JScript "%~f0" %*
pause
goto :eof
*/
@end
...
penpen