Advertisement
Guest User

Script3.bat

a guest
Apr 6th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | Source Code | 0 0
  1. @echo off
  2. setlocal enableextensions enabledelayedexpansion
  3.  
  4. mkdir "%~dp0\Paks"
  5. for /D %%G in ("%~dp0z_*") do (
  6.     set "name=%%~nG"
  7.     set "stripped=!name:~2,-2!"
  8.     mkdir "%~dp0\Paks\!stripped!"
  9.     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"
  10. )
  11.  
  12. set "timestamp=%date:~-4,4%%date:~-7,2%%date:~-10,2%_%time:~0,2%%time:~3,2%"
  13. set "timestamp=%timestamp: =0%"
  14. set "archiveName=LongerBuffs_%timestamp%.zip"
  15.  
  16. echo Archiving directories...
  17. powershell -nologo -noprofile -command "$folders = Get-ChildItem -Path '%~dp0\Paks' -Directory; Compress-Archive -Path $folders.FullName -DestinationPath '%~dp0\Paks\%archiveName%' -Force"
  18.  
  19. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement