Created
October 26, 2017 05:16
-
-
Save kowith337/ec06fdf0f4215e4e94770defbae7bff0 to your computer and use it in GitHub Desktop.
Protect your Minecraft launcher profile before install/update mods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
echo This will protect your Minecraft launcher profile before installing some mods, such as Forge or OptiFine | |
echo that try to create new profile and/or change the game version that you want to launch after install. | |
:choice | |
set /P c=Press Y to protect or N to unprotect (Y/N) | |
if /I "%c%" EQU "Y" goto :protect | |
if /I "%c%" EQU "N" goto :unprotect | |
goto :choice | |
:protect | |
attrib +r %appdata%\.minecraft\launcher_profiles.json | |
echo Launcher profile has been locked! | |
pause | |
exit | |
:unprotect | |
attrib -r %appdata%\.minecraft\launcher_profiles.json | |
echo Launcher profile has been unlocked! | |
pause | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment