Skip to content

Instantly share code, notes, and snippets.

Created May 2, 2012 15:49
Show Gist options
  • Save anonymous/2577679 to your computer and use it in GitHub Desktop.
Save anonymous/2577679 to your computer and use it in GitHub Desktop.
lunch process test
import java.io.File;
public class Hoge {
protected static String command = "mshta";
protected static String html = (new File(".").getAbsoluteFile().getParent()) + File.separator + "a.html";
public static void main(String[] args) throws
java.io.IOException, InterruptedException {
System.exit(Runtime.getRuntime().exec(command + " " + html).waitFor());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment