From 1e73f91f2db45ab9b42fb7cea175193f1a0cc374 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Mon, 17 Oct 2016 07:34:18 +0200 Subject: [PATCH] Windows Support(Nicht Getestet --- src/forgemodpackbuilder/ProcExecExamples.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/forgemodpackbuilder/ProcExecExamples.java b/src/forgemodpackbuilder/ProcExecExamples.java index df93a5d..4a78345 100644 --- a/src/forgemodpackbuilder/ProcExecExamples.java +++ b/src/forgemodpackbuilder/ProcExecExamples.java @@ -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");