Created
December 17, 2020 17:54
-
-
Save guillaC/75e2f4615399b7f5a43668a8d884db07 to your computer and use it in GitHub Desktop.
update uMod mod for the game Rust
This file contains hidden or 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 | |
SET URL=https://umod.org/games/rust/download | |
SET FILE="./%RANDOM%.zip" | |
SET FOLDERPATH="C:\Users\Guillaume\Desktop\RustServer\common\rust_dedicated\data\Managed" | |
ECHO Downloading from %URL% | |
powershell.exe -c "(New-Object Net.WebClient).DownloadFile('%URL%','%FILE%')" | |
ECHO Done. | |
ECHO Extract to current folder | |
powershell.exe -c "Expand-Archive -Force '%FILE%' ./" | |
ECHO Done. | |
ECHO Copy to %FOLDERPATH%. | |
COPY .\RustDedicated_Data\Managed\* %FOLDERPATH% /Y | |
COPY .\RustDedicated_Data\Managed\x64\* %FOLDERPATH%\x64\ /Y | |
COPY .\RustDedicated_Data\Managed\x86\* %FOLDERPATH%\x86\ /Y | |
ECHO Done. | |
DEL %FILE% | |
RMDIR /S /Q .\RustDedicated_Data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment