Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :::::::::::::::::::::::::::::::::::::::::::::::
- ::Auto-Download & Install Optifine via CMD ::
- ::Need an mod update? Discord: D.RU$$#2430 ::
- ::Created by RU$$ [http://russdev.mooo.com/] ::
- :::::::::::::::::::::::::::::::::::::::::::::::
- ::File download URL (Dirrect only)
- SET URL=http://russdev.mooo.com/extra/1.12.2-OptiFine_HD_U_C8.zip
- ::Code start
- @echo off
- echo Downloading file to batch dirrectory.
- bitsadmin /transfer mydownloadjob /download /priority normal ^ %URL% %~dp0\x.zip
- echo Extracting file.
- powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('x.zip', 'DownloadedFiles'); }"
- echo Moving the files out of folder. (If Enabled)
- move /Y "%~dp0DownloadedFiles\versions\1.12.2-OptiFine_HD_U_C8" "%appdata%\.minecraft\versions"
- move /Y "%~dp0DownloadedFiles\optifine\OptiFine\1.12.2_HD_U_C8" "%appdata%\.minecraft\libraries\optifine\OptiFine"
- echo Cleaning up files.
- del /F /Q "%~dp0\x.zip"
- RD /S /Q "%~dp0\DownloadedFiles"
- cls
- echo Job has finished!
- pause >nul
- exit
Add Comment
Please, Sign In to add comment