这工作:
String fileName = "C:\Tomcat 7.0\bin\restart.bat"; String[] commands = {"cmd", "/c", "start", ""DummyTitle"",fileName}; Runtime.getRuntime().exec(commands);
取自http://www.rgagnon.com/javadetails/java-0014.html
欢迎分享,转载请注明来源:内存溢出
这工作:
String fileName = "C:\Tomcat 7.0\bin\restart.bat"; String[] commands = {"cmd", "/c", "start", ""DummyTitle"",fileName}; Runtime.getRuntime().exec(commands);
取自http://www.rgagnon.com/javadetails/java-0014.html
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)