你怎么用的?
这样可以
try{
Runtime.getRuntime().exec("cmd /c start ****.bat");
}catch...

解决方案 »

  1.   

    同意以上
    我的实验原码:
    class dostry{
      public static void main(String args[]){
    try{
    Runtime.getRuntime().exec("cmd /c start exetry.bat");
    }
    catch (Exception e){
    System.out.println("the call .bat file failed!");
    }
      }
    }
    在同一目录下建立文件,exebat.exe,里面写入:notepad.exe
    运行成功!
      

  2.   

    这个 .pl程序和bat,exe有区别吗?
      

  3.   

    .pl是Perl的程序,可以在命令窗口直接敲文件名运行,
    是可执行的,但在JAVA里却不能调用