Dec 24, 2017 11:39 PM
(This post was last modified: Dec 25, 2017 01:44 AM by noahs200010.)
This is a brief tutorial on making a .bat file that launches minecraft.
Getting Launch Arguments
To start off we're gonna have to get the minecraft launchers launch arguments.
This can be done either by enabling Command Line in Task Manager by right clicking name and clicking on Command Line.
However Task Manager doesn't allow copy and pasting so its better to use Process Explorer.
https:][docs.microsoft][com/en-us/sysinternals/downloads/process-explorer
This process is the same either way minus Task Manager having no
copy feature.
For this tutorial i'm gonna be using Process Explorer.
Start off by opening The Minecraft Launcher and running any version of minecraft i'm gonna be running 1.12.2.
LEAVE IT OPEN!!!
In Process Explorer find MinecraftLauncher.exe ->javaw.exe right click Properties and copy the Command Line text field into Notepad.
In Task Manager find Java Platform SE binary and copy the Command Line field into Notepad.
Get Java Libraries
WHILE Minecraft is still open press Windows Key + R and type %temp% and press okay.
Look for the files
in a Folder with a random name.
Code
jinput-dx8.dll, jinput-dx8_64.dll, jinput-raw.dll, jinput-raw_64.dll, jinput-wintab.dll, lwjgl.dll, lwjgl64.dll, OpenAL32.dll, OpenAL64.dll, SAPIWrapper_x64.dll, SAPIWrapper_x86.dllCopy the folder containing those files to where ever you want and rename the Folder to javaLibraries.
Editing Launch Arguments
Now open the Notepad we opened earlier.
Use Find Ctrl + F to find
Code
-Djava.library.path=Use Replace Ctrl + H to replace
with your javaLibraries path.
Code
C:\Users\<User>\AppData\Local\Temp\<random folder name>Use Find Ctrl + F to find
Use Replace Ctrl + H to replace
Code
C:\Users\<User>\AppData\Roaming\.minecraftUse Replace Ctrl + H to replace
Code
%appdata%\.minecraftUse Find Ctrl + F to find
Use Replace Ctrl + H to replace
Code
C:\Users\<User>\AppData\Roaming\.minecraft\librariesUse Replace Ctrl + H to replace
Code
%appdata%\.minecraft\librariesBefore the Launch Arguments begin on the same line add
Code
start ""After the Launch Arguments on the next line add
Code
exitSave the file as a .bat and run.
This can be use to make a custom launcher using the json.org libraries on java to load the launcher_profiles.json and get the users AccessToken,Username,Ect. and creating a custom bat with different [b]AccessToken,Username,Ect.[/b]


