Created
May 2, 2012 15:49
-
-
Save anonymous/2577679 to your computer and use it in GitHub Desktop.
lunch process test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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