Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- ::Change file.bak to file.plr ::
- ::Created by RU$$ [http://russdev.mooo.com/] ::
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- @ECHO OFF
- @SETLOCAL
- @TITLE Change file.bak to file.plr
- @CD C:\Users\%username%\Documents\My Games\Terraria\Players
- @GOTO :MAIN
- :MAIN
- cls
- echo ::BAK Files In This Directory::
- echo.
- dir /b /a-d *.bak
- echo.
- Echo Select the save file you wish to convert from. (Must include extension)
- Set /p FILE=File Name:
- If exist %FILE% (GOTO :EXISTS) else (GOTO :ERROR)
- :EXISTS
- cls
- Echo STATUS: File was found, proceding with conversion.
- echo.
- set efile=%FILE%
- set endbit=%efile:*.=%
- call set final=%%efile:%endbit%=%%
- COPY "%FILE%" "%final%plr" /Y
- cls
- echo The file was changed to %final%plr! Returning..
- echo.
- pause
- GOTO :MAIN
- :ERROR
- cls
- Echo ERROR: File not found! Returning..
- Echo.
- Pause.
- GOTO :MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement