Alright, so typically you would create a batch file for this and run it as so-
I would like run this line of code when someone clicks a button in my program.Code:java -Xms1G -Xmx1G -jar Minecraft.exe
I've tried-
Which works, but then the game automatically tries to connect to a server named "-Xmx1G" which obviously isn't what I want.Code:Process.Start("C:\Users\" & Username & "\AppData\Roaming\HXL\Minecraft.exe", "Java -Xms1G -Xmx1G -jar")




Reply With Quote
