home *** CD-ROM | disk | FTP | other *** search
/ UnrealScript Game Programming All in One / UnrealScriptGameProgrammingAllInOne.iso / UGPAIOListings / CH08LIST_BACKUP / System / createCustomIni.bat < prev    next >
Encoding:
DOS Batch File  |  2006-01-26  |  778 b   |  38 lines

  1. @echo off
  2. rem This program creates a custom Ini file
  3. rem of the name UT2004_PACKAGE-NAME.ini
  4.  
  5. echo Create new *.ini file for
  6.  
  7. rem #1
  8. echo File to be used: %1
  9. if "%1"=="" (
  10.  
  11.   echo You must enter the name of the package to
  12.   echo use as the basis of the *.ini
  13.   echo file name
  14.   goto ERROR
  15.   rem go to the end, no action.
  16. )
  17.  
  18. rem #2
  19. if "%2"=="" (
  20.   echo You must provide the path to the UT2004 directory
  21.   echo Example: c:\UT2004
  22.   goto ERROR
  23. )
  24.  
  25. rem #3
  26. echo Creating . . .
  27. IF NOT exist "%2\%1" mkdir "%2\%1"
  28. IF NOT exist "%2\%1\Classes" mkdir "%2\%1\Classes"
  29. IF NOT exist "%2\%1\UT2004_%1.ini" copy "%2\System\UT2004.ini" "%2\%1\UT2004_%1.ini"
  30.  
  31.  
  32. rem #4
  33. echo %2\%1\UT2004_%1.ini file created
  34. notepad "%2\%1\UT2004_%1.ini"
  35.  
  36. :ERROR
  37. rem pause
  38. exit