Page 1 of 1

Changing a folder name created by a program using batch.

Posted: 27 Jun 2019 12:20
by Tyde
Hello,

I have the old launcher for the game called Minecraft and in order to get it to not mess with my newer launcher files I found a way to change the folder destination using batch

Code: Select all

@ECHO OFF
TITLE Launcher Log
SET AppData=%USERPROFILE%\Games\Minecraft\OldLauncher\
.\runtime\jre1.7.0_79-64b\bin\java.exe -Xmn1G -Xmx2G -Xms2G -jar MinecraftLauncher.exe
It works great but it doesn't change the folder at the end .minecraft so it looks like C:\Users\Tyde\Games\Minecraft\OldLauncher\.minecraft and then it puts all the files in there.
I was wondering if there was a way to change the .minecraft to something else using batch.