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); }}