标签:stat stack bat脚本 string java system ring put input
import java.io.;
import java.util.;
public class TestExec {
public void runbat(int timeFortmat) {
String cmd = "cmd /c start D:/ScheduleRun/data/"+timeFortmat+".bat";
try {
Process ps = Runtime.getRuntime().exec(cmd);
System.out.println(ps.getInputStream());
} catch(IOException ioe) {
ioe.printStackTrace();
}
}
public static void main(String[] args){
TestExec test1 = new TestExec ();
test1.runbat(1340);
}
}
标签:stat stack bat脚本 string java system ring put input
原文地址:https://www.cnblogs.com/effortfordream/p/13435321.html