Recently I have been messing around with Minecraft batch files. Experimenting with ways to get the same result with less text. So, with this line here:
"C:\Users\Deven\AppData\Roaming\.minecraft\bin\minecraft.jar;C:\Users\Deven\AppData\Roaming\.minecraft\bin\jinput.jar;C:\Users\Deven\AppData\Roaming\.minecraft\bin\lwjgl.jar;C:\Users\Deven\AppData\Roaming\.minecraft\bin\lwjgl_util.jar" -Djava.library.path="C:\Users\Deven\AppData\Roaming\.minecraft\bin\natives" net.minecraft.client.Minecraft
Notice how each section directly points to the required file. And this works perfectly.
But it does not work if I try this:
"%AppData%\Roaming\.minecraft\bin\minecraft.jar;%AppData%\Roaming\.minecraft\bin\jinput.jar;%AppData%\Roaming\.minecraft\bin\lwjgl.jar;%AppData%\Roaming\.minecraft\bin\lwjgl_util.jar" -Djava.library.path="%AppData%\Roaming\.minecraft\bin\natives" net.minecraft.client.Minecraft
Why does this not work? The %AppData% shortcut CMD does the same thing only without entering the entire target. If I use @Echo On & Pause, I can see what goes on when it launches, and it looks just like the very first set I have just typed, yet does not execute. Any ideas would be greatly appreciated.
"C:\Users\Deven\AppData\Roaming\.minecraft\bin\minecraft.jar;C:\Users\Deven\AppData\Roaming\.minecraft\bin\jinput.jar;C:\Users\Deven\AppData\Roaming\.minecraft\bin\lwjgl.jar;C:\Users\Deven\AppData\Roaming\.minecraft\bin\lwjgl_util.jar" -Djava.library.path="C:\Users\Deven\AppData\Roaming\.minecraft\bin\natives" net.minecraft.client.Minecraft
Notice how each section directly points to the required file. And this works perfectly.
But it does not work if I try this:
"%AppData%\Roaming\.minecraft\bin\minecraft.jar;%AppData%\Roaming\.minecraft\bin\jinput.jar;%AppData%\Roaming\.minecraft\bin\lwjgl.jar;%AppData%\Roaming\.minecraft\bin\lwjgl_util.jar" -Djava.library.path="%AppData%\Roaming\.minecraft\bin\natives" net.minecraft.client.Minecraft
Why does this not work? The %AppData% shortcut CMD does the same thing only without entering the entire target. If I use @Echo On & Pause, I can see what goes on when it launches, and it looks just like the very first set I have just typed, yet does not execute. Any ideas would be greatly appreciated.