Changing a folder name created by a program using batch.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Tyde
Posts: 1
Joined: 27 Jun 2019 12:07

Changing a folder name created by a program using batch.

#1 Post by Tyde » 27 Jun 2019 12:20

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.

Post Reply