Batch File not working

Rageincoming

Honorable
Apr 29, 2013
6
0
10,510
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.
 

Rageincoming

Honorable
Apr 29, 2013
6
0
10,510
Actually I'm sorry, lol, I actually found the solution to this problem. Minecraft checks in the "Roaming folder by default, and by keeping it in there it is attempting to look for Roaming/Roaming

Here is the revised working code:

"%AppData%\.minecraft\bin\minecraft.jar;%AppData%\.minecraft\bin\jinput.jar;%AppData%\.minecraft\bin\lwjgl.jar;%AppData%\.minecraft\bin\lwjgl_util.jar" -Djava.library.path="%AppData%\.minecraft\bin\natives" net.minecraft.client.Minecraft