Windows Support(Nicht Getestet

This commit is contained in:
Simon Rieger 2016-10-17 07:34:18 +02:00
parent d1419ebf66
commit 1e73f91f2d

View file

@ -19,7 +19,12 @@ public class ProcExecExamples {
if (isWindowsSystem()) {
System.out.println("Windows");
Runtime.getRuntime().exec("cmd /c help");
if (funktion == 1) {
Runtime.getRuntime().exec("cmd /c C:\\Users\\" + System.getProperty("user.home") + "\\AppData\\Roaming\\.minecraft\\Minecraft.jar");
}
if (funktion == 2) {
Runtime.getRuntime().exec("cmd /c C:\\Users\\" + System.getProperty("user.home") + "\\AppData\\Roaming\\.minecraft\\forge.jar");
}
}
if (isLinuxSystem()) {
System.out.println("Linux");