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();
pause
for .bat
and
<>; #Read from STDIN
for Perl
I don't know about in perl, but in a batch file it's easy:
pause
The help for this command states:
Suspends processing of a batch program and displays the message
Press any key to continue . . .
<>
for Perl works great. And yeah, pause is convenient for cmd.