Java exec executeBatFile(String batFile)

Here you can find the source of executeBatFile(String batFile)

Description

execute Bat File

License

Apache License

Declaration

public static void executeBatFile(String batFile) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.IOException;

public class Main {
    public static void executeBatFile(String batFile) throws IOException {
        Runtime runtime = Runtime.getRuntime();
        runtime.exec(batFile);/*  ww w  .  j  a  va 2  s .  c o  m*/
    }
}

Related

  1. execute1(final String appPath)
  2. execute2(final String appPath)
  3. executeAndWait(String command)
  4. executeApplication(String filePath)
  5. executeBashScriptWithParams(ArrayList script)
  6. executeCD(String dirPath)
  7. executeCmdCommand(String command)
  8. executeCmdForReader(String cmd)
  9. executeComand(String[] comand)