How can I pause the console window in .pl and .bat file?
Posted
by Nano HE
on Stack Overflow
See other posts from Stack Overflow
or by Nano HE
Published on 2010-03-25T07:18:25Z
Indexed on
2010/03/25
16:33 UTC
Read the original article
Hit count: 342
As I know, when I run cs myConsoleApp.cs from windows command line, I can pause the Console Window by add the code below:
Console.ReadLine();
Then How can I pause Console Window in myConsoleApp.pl and myConsoleApp.bat? I just want to monitor the running result from the Console window. Thank you.
Suppose myConsoleApp.bat like this:
taskkill /f /im "E1.exe"
taskkill /f /im "E2.exe"
pause
Suppose myConsoleApp.pl like this:
use strict;
use warnings;
print "Hello World!";
<>;
© Stack Overflow or respective owner