home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1996 April / cd2.iso / demos / trakatac / trakatak.exe / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-01-24  |  2KB  |  100 lines

  1. @echo off
  2.  
  3. echo.
  4. echo ▀█▀ █▀▄ ▄▀▄ ▄▀▄ █ ▄▀    ▄▀▄ ▀█▀ ▀█▀ ▄▀▄ ▄▀▄ █ ▄▀
  5. echo  █  █▀▄ █▀█ █ ▄ █▀▄     █▀█  █   █  █▀█ █ ▄ █▀▄ 
  6. echo  ▀  ▀ ▀ ▀ ▀  ▀  ▀  ▀    ▀ ▀  ▀   ▀  ▀ ▀  ▀  ▀  ▀
  7. echo █▀▄ █▀▀ █▄ ▄█ ▄▀▄    █ █ █▀▀ █▀▄ ▄▀▀ ▀█▀ ▄▀▄ █▄ █
  8. echo █ █ █▀  █ ▀ █ █ █    ▀▄▀ █▀  █▀▄  ▀▄  █  █ █ █ ▀█
  9. echo ▀▀  ▀▀▀ ▀   ▀  ▀      ▀  ▀▀▀ ▀ ▀ ▀▀  ▀▀▀  ▀  ▀  ▀
  10.  
  11. rem =====================================================================
  12.  
  13. if "%1" == "" GOTO Syntax
  14. if "%1" == "/?" GOTO Syntax
  15. if NOT "%2" == "" GOTO Syntax
  16.  
  17. if NOT EXIST %1\nul goto no_path
  18.  
  19. if EXIST %1\TA\nul goto skip_create_dir
  20. md %1\TA > nul
  21. if ERRORLEVEL == 1 goto cant_create_dir
  22. :skip_create_dir
  23.  
  24. if NOT EXIST TRAKATAK.EXE goto no_file
  25.  
  26. echo Please wait a few days...
  27.  
  28. copy TRAKATAK.EXE %1\TA\TRAKATAK.EXE > nul
  29.  
  30. cd %1\TA
  31.  
  32. TRAKATAK.EXE -y > nul
  33. if ERRORLEVEL == 1 goto cant_unarj
  34.  
  35. del TRAKATAK.EXE > nul
  36.  
  37. echo.
  38. echo Installation is complete, type 'soundset.exe' to configure the sound
  39. echo and 'go.exe' to run Track Attack.
  40.  
  41. goto exit
  42.  
  43. rem =====================================================================
  44.  
  45. :syntax
  46.  
  47. echo Syntax: install [path]
  48. echo.
  49. echo This will install Track Attack to the TA directory in the given path.
  50. echo.
  51. echo Eg. 'install C:\GAMES' will install Track Attack to 'C:\GAMES\TA'
  52.  
  53. goto exit
  54.  
  55. rem =====================================================================
  56.  
  57. :no_path
  58.  
  59. echo Track Attack cannot install because the path '%1' does not exist.
  60.  
  61. goto exit
  62.  
  63. rem =====================================================================
  64.  
  65. :cant_create_dir
  66.  
  67. echo Track Attack cannot create the directory '%1\TA'.
  68.  
  69. goto exit
  70.  
  71. rem =====================================================================
  72.  
  73. :cant_copy_file
  74.  
  75. echo Track Attack cannot copy the file 'TRAKATAK.EXE' to '%1\TA\TRAKATAK.EXE'.
  76.  
  77. goto exit
  78.  
  79. rem =====================================================================
  80.  
  81. :no_file
  82.  
  83. echo You are missing the file 'TRAKATAK.EXE'.
  84.  
  85. goto exit
  86.  
  87. rem =====================================================================
  88.  
  89. :cant_unarj
  90.  
  91. echo Track Attack cannot uncompress the file 'TRAKATAK.EXE'.
  92.  
  93. goto exit
  94.  
  95. rem =====================================================================
  96.  
  97. :exit
  98.  
  99. rem =====================================================================
  100.