home *** CD-ROM | disk | FTP | other *** search
-
-
-
- echo off
- @rem copyCustomIni.bat
- rem #1
- cls
- echo Copy your local *ini to your UT System dir...
- echo File to be used: %1
- echo -----------------------------------------------
-
- if "%1"=="" (
- echo You must enter the package to
- echo use as the basis of the *.ini
- echo file name
- goto ERROR
- rem go to the end, no action.
- )
-
- if "%2"=="" (
- echo You must provide the path to the UT2004 directory
- goto ERROR
- )
-
- rem #2
-
- echo Deleting %2\%1\UT2004_%1.ini_old ...
- if exist "%2\%1\UT2004_%1.ini_old" DEL "%2\%1\UT2004_%1.ini_old"
-
- echo Saviing %2\%1\UT2004_%1.ini
- echo to %2\%1\UT2004_%1.ini_old ...
-
- rem if a current copy exists in System, save it to old locally
- copy "%2\%1\UT2004_%1.ini" "%2\%1\UT2004_%1.ini_old"
-
- rem #3
-
- echo Copying the local ini to the System Ini...
- iF exist "%2\%1\UT2004_%1.ini" copy "%2\%1\UT2004_%1.ini" "%2\System\UT2004_%1.ini"
-
-
- rem #4
- echo %2\%1\UT2004_%1.ini file copied to your System directory
- dir "%2\System\U*_*.ini"
-
-
-
- :ERROR
-
- rem console testing use
- rem pause
- exit