Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- REM Really simple samp version switcher
- REM Realized purely in a batch script
- REM Mauzen, 1/19/2014
- ECHO *************************************
- ECHO * SA-MP Batch Version Switcher V1 *
- ECHO * Created by Mauzen, 1/19/2014 *
- ECHO *************************************
- ECHO.
- REM *** Store the current working directory ***
- SET CURDIR=%~dp0
- IF "%1"=="" (
- REM *** Get the current version ***
- ECHO The currently active version is:
- TYPE curversion.cfg
- ECHO.
- ECHO Available versions:
- DIR /B /A:D
- PAUSE
- GOTO:EOF
- )
- REM *** Check if selected version is installed ***
- IF exist "%1" (
- ECHO Switching to version "%1"
- ) ELSE (
- ECHO Version "%1" is not available.
- PAUSE
- GOTO:EOF
- )
- REM *** Move version files to game directory ***
- XCOPY /E /Y %1\* ..
- ECHO.
- ECHO Successfully switched to version %1
- REM *** Save active version to file for later use ***
- ECHO %1 > curversion.cfg
- PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement