Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :: By Hugo7 on TRT
- :: I'm not responsible for any damage caused by this script, especially if incorrectly configured.
- :: PLEASE CHECK ALL LINES BEGINING WITH "SET" - THESE ARE YOUR PARAMETERS
- :: >>BEGIN USER CONFIG SECTION
- :: Path to 7z.exe file on your computer
- set exe7z=C:\Program Files\7-Zip\7z.exe
- :: Lang code of the zt2 mod you downloaded (default : english 1033)
- set lang1=1033
- :: Your lang code (of your installed zt2)
- set lang2=1036
- :: Path to the folder where you put the mods you just downloaded
- set downloads=C:\Users\Hugo\Downloads\z2f
- :: >>END USER CONFIG SECTION
- :: Checking if your config is right
- if not exist "%exe7z%" (
- echo Incorrect 7z.exe file location
- pause
- exit /b
- )
- if not exist "%downloads%" (
- echo Incorrect downloads folder location
- pause
- exit /b
- )
- pushd "%downloads%"
- :: Batch renaming line code, using 7zip line command features
- for /f "tokens=*" %%A in ('dir /b ^| find /i ".z2f"') do "%exe7z%" rn "%%A" "lang/%lang1%" "lang/%lang2%"
- popd
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement