import java.io.IOException; public class GetExe{ public static void main(String args[]){ try{ Runtime r=Runtime.getRuntime(); Process p=r.exec( "cmd.exe /c "+ "start /min d://aa.bat "); }catch(IOException e){ e.printStackTrace(); } } }