Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal enableextensions enabledelayedexpansion
- mkdir "%~dp0\Paks"
- for /D %%G in ("%~dp0z_*") do (
- set "name=%%~nG"
- set "stripped=!name:~2,-2!"
- mkdir "%~dp0\Paks\!stripped!"
- C:\Modding\UnrealReZen\UnrealReZen.exe --content-path "%%G" --compression-format Zlib --engine-version GAME_UE4_27 --game-dir "D:\SteamLibrary\steamapps\common\The Lord of the Rings Return to Moria\Moria\Content\Paks" --output-path "%~dp0\Paks\!stripped!\%%~nG.utoc"
- )
- set "timestamp=%date:~-4,4%%date:~-7,2%%date:~-10,2%_%time:~0,2%%time:~3,2%"
- set "timestamp=%timestamp: =0%"
- set "archiveName=LongerBuffs_%timestamp%.zip"
- echo Archiving directories...
- powershell -nologo -noprofile -command "$folders = Get-ChildItem -Path '%~dp0\Paks' -Directory; Compress-Archive -Path $folders.FullName -DestinationPath '%~dp0\Paks\%archiveName%' -Force"
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement