Solved How do I keep a cmd window open in java?

April 21, 2012 at 10:51:46
Specs: Windows 7
I am using RMI to reg, using a program invoking a bat file.
but .bat will close as soon as the command is executed

See More: How do I keep a cmd window open in java?

Report •

#1
April 21, 2012 at 13:47:43
✔ Best Answer
Try adding:

echo "Press any key to quit"
pause > NUL

at the end of your batch file.

hth

Elinor Hurst
http://elinorhurst.blogspot.com


Report •

#2
April 21, 2012 at 21:33:57
Thank u for providing solution

Report •

#3
April 22, 2012 at 12:05:20
Glad it helped! Would you mark the post as solved please?

Thank you

Elinor Hurst
http://elinorhurst.blogspot.com


Report •
Related Solutions


Ask Question