execute bat file in java

String path="cmd /c start d:\\sample\\sample.bat";
Runtime rn=Runtime.getRuntime();
Process pr=rn.exec(path);`

/c start 

猜你喜欢

转载自k1280000.iteye.com/blog/1753121