Alright, so typically you would create a batch file for this and run it as so-

Code:
java -Xms1G -Xmx1G -jar Minecraft.exe
I would like run this line of code when someone clicks a button in my program.

I've tried-

Code:
Process.Start("C:\Users\" & Username & "\AppData\Roaming\HXL\Minecraft.exe", "Java -Xms1G -Xmx1G -jar")
Which works, but then the game automatically tries to connect to a server named "-Xmx1G" which obviously isn't what I want.