Windows Support(Nicht Getestet
This commit is contained in:
parent
d1419ebf66
commit
1e73f91f2d
1 changed files with 6 additions and 1 deletions
|
@ -19,7 +19,12 @@ public class ProcExecExamples {
|
||||||
|
|
||||||
if (isWindowsSystem()) {
|
if (isWindowsSystem()) {
|
||||||
System.out.println("Windows");
|
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()) {
|
if (isLinuxSystem()) {
|
||||||
System.out.println("Linux");
|
System.out.println("Linux");
|
||||||
|
|
Loading…
Reference in a new issue