Close command prompt in bat file after start

September 20, 2011 at 03:31:19
Specs: Windows 7
call from java

Runtime.getRuntime().exec("cmd.exe /c start E:/run.bat");

in run.bat file:

E:/Tomcat/bin/catalina.bat start & exit


See More: Close command prompt in bat file after start

Report •


#1
September 20, 2011 at 05:26:57
In Unix you would need two &&. It might be the same in Windows. (just a guess)

How do you know when a politician is lying? His mouth is moving.


Report •
Related Solutions


Ask Question