home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / vrac / aod12.zip / AODPATCH.BAT next >
DOS Batch File  |  1995-04-07  |  3KB  |  97 lines

  1. @echo off
  2. mode co80
  3. rem ****************************************************************
  4. rem *
  5. rem * Batch file to install the AOD patch disk to a hard drive
  6. rem *
  7. rem * copyright 1995 Dynamix 
  8. rem ****************************************************************
  9.  
  10. :getCurDir
  11. IF NOT EXIST patfiles\nul goto sameDir
  12. cd patfiles
  13. :==== sameDir ====
  14. IF NOT EXIST cddat.dat goto fmissing
  15. copy cddat.dat tempcd.bat>nul
  16. CD >> tempcd.bat
  17.  
  18. CALL tempcd.bat
  19. IF EXIST %dirtemp%tempcd.bat goto langSel
  20. IF EXIST %dirtemp%\tempcd.bat goto addslash
  21. echo.
  22. echo Unable to create environment variable
  23. echo Install failed ( You may be out of DOS environment space ).
  24. echo.
  25. goto end
  26.  
  27. :addslash
  28. rem ------------ append a backslash to the directory name variable -----
  29. SET dirtemp=%dirtemp%\
  30. goto langSel
  31.  
  32.  
  33. :langSel
  34. rem --- get rid of the temporary file -------
  35. del tempcd.bat
  36.  
  37. cls
  38. echo.
  39. echo.
  40. echo      ┌──────────────   AOD PATCH INSTALLATION  ────────────────┐
  41. echo      │                 Copyright 1995 Dynamix                  │
  42. echo      │                                                         │
  43. echo      │                                                         │
  44. echo      │  If you want to run the program in English, press 'E'.  │
  45. echo      │                                                         │
  46. echo      │ Pour utiliser le programme en français, appuyez sur 'F'.│
  47. echo      │                                                         │
  48. echo      │   Um das Spiel in Deutsch zu spielen, 'D' eingeben.     │
  49. echo      │                                                         │
  50. echo      │                                                         │
  51. echo      └─────────────────────────────────────────────────────────┘
  52. echo.
  53. echo.
  54.  
  55.  
  56. GK.COM
  57.  
  58. :checkKey
  59. IF ERRORLEVEL 113 IF NOT ERRORLEVEL 114 GOTO end
  60. IF ERRORLEVEL 102 IF NOT ERRORLEVEL 103 GOTO French
  61. IF ERRORLEVEL 101 IF NOT ERRORLEVEL 102 GOTO English
  62. IF ERRORLEVEL 100 IF NOT ERRORLEVEL 101 GOTO German
  63. IF ERRORLEVEL 81  IF NOT ERRORLEVEL 82  GOTO end
  64. IF ERRORLEVEL 70  IF NOT ERRORLEVEL 71  GOTO French
  65. IF ERRORLEVEL 69  IF NOT ERRORLEVEL 70  GOTO English
  66. IF ERRORLEVEL 68  IF NOT ERRORLEVEL 69  GOTO German
  67. IF EXIST aodpatch.bat goto end
  68. cd..
  69. goto end
  70.  
  71. :English
  72. cls
  73. call eng.bat %dirtemp% %1
  74. goto end
  75.  
  76. :German
  77. cls
  78. call ger.bat %dirtemp% %1
  79. goto end
  80.  
  81. :French 
  82. cls
  83. call frn.bat %dirtemp% %1
  84. goto end
  85.  
  86. :fmissing
  87. cls
  88. echo.
  89. echo   Patch install could not locate the file CDDAT.DAT. Please check
  90. echo   to make sure you have all the necessary patch files before running
  91. echo   patch.bat again.
  92. echo.
  93. goto end
  94.  
  95. :end
  96. SET dirtemp=
  97.