home *** CD-ROM | disk | FTP | other *** search
/ Spel 4 / Spel4.iso / dos / 3d / afs / install.bat < prev    next >
Encoding:
DOS Batch File  |  1996-06-18  |  3.2 KB  |  123 lines

  1. @ECHO off
  2.  
  3. if "%1" == "" GOTO USAGE
  4. if "%2" == "FTP" GOTO CPFTP
  5. if "%2" == "" GOTO USAGE
  6. if "%3" == "FULL" GOTO CPFULL 
  7. if "%3" == "MIN"  GOTO CPMIN
  8.  
  9.  
  10. :USAGE
  11. cls
  12. echo.
  13. echo Usage is : 
  14. echo     INTALL.BAT [root drive] [target drive]  FULL or MIN 
  15. echo.
  16. echo     with (target drive) follows the form below :
  17. echo        install.bat e: c: FULL
  18. echo        install.bat e: c:\simulator FULL
  19. echo.
  20. echo If you get AFS files from a FTP site, follow the syntax below :
  21. echo.
  22. echo     INTALL.BAT [Absolute AFS directory] FTP
  23. echo        install.bat e:\AFS FTP
  24. echo. 
  25. echo FULL option is recommended, it allows patches and
  26. echo version updates on your hard disk, but in order to save
  27. echo hard disk space, you can choose MIN as installation option.
  28. echo.
  29. echo If you choose MIN as installation option, you must re-install
  30. echo AFS with FULL option if you get an update or a patch.
  31. echo.
  32. pause
  33. echo This script will create the AFS directory in (target drive)
  34. echo with either partial (MIN) or complete (FULL) installation.
  35. echo.
  36. echo FTP option is only if you get AFS from an FTP site, it configures
  37. echo AFS to run in current directory. This directory must contains
  38. echo uncompressed AFS files.
  39. echo.
  40. goto fin
  41.  
  42. :CPMIN
  43.  
  44. echo install AFS from drive %1 to %2\AFS
  45. pause
  46.  
  47. mkdir %2\AFS
  48. mkdir %2\AFS\pilot
  49. mkdir %2\AFS\aircraft
  50. mkdir %2\AFS\logs
  51. mkdir %2\AFS\dat
  52.  
  53.  
  54. xcopy /s /y /e /v pilot %2\AFS\pilot
  55. xcopy /s /y /e /v aircraft %2\AFS\aircraft
  56. xcopy /s /y /e /v logs %2\AFS\logs
  57. copy dat\*.dat %2\AFS\DAT
  58. copy dat\*.cnf %2\AFS\DAT
  59.  
  60. echo %1 >%2\AFS\afs.bat
  61. tools\echon cd >>%2\AFS\afs.bat
  62. chdir >>%2\AFS\afs.bat
  63. echo afs.exe %2\AFS >>%2\AFS\afs.bat
  64. echo register.exe %2\afs >%2\AFS\register.bat
  65. goto fin
  66.  
  67. :CPFULL
  68. echo install AFS from drive %1 to %2\AFS
  69. pause
  70. mkdir %2\AFS
  71. mkdir %2\AFS\pilot
  72. mkdir %2\AFS\aircraft
  73. mkdir %2\AFS\logs
  74. mkdir %2\AFS\dat
  75. mkdir %2\AFS\airport
  76. mkdir %2\AFS\board
  77. mkdir %2\AFS\hlp
  78. mkdir %2\AFS\sound
  79. mkdir %2\AFS\texture
  80. mkdir %2\AFS\scene
  81. mkdir %2\AFS\dem
  82. xcopy /s /y /e /v pilot %2\AFS\pilot
  83. xcopy /s /y /e /v aircraft %2\AFS\aircraft
  84. xcopy /s /y /e /v logs %2\AFS\logs
  85. xcopy /s /y /e /v dat %2\AFS\dat
  86. xcopy /s /y /e /v airport %2\AFS\airport
  87. xcopy /s /y /e /v board %2\AFS\board
  88. xcopy /s /y /e /v hlp %2\AFS\hlp
  89. xcopy /s /y /e /v sound %2\AFS\sound
  90. xcopy /s /y /e /v texture %2\AFS\texture
  91. xcopy /s /y /e /v scene %2\AFS\scene
  92. copy *.* %2\AFS
  93.  
  94. echo %2 >%2\AFS\afs.bat
  95. tools\echon cd >>%2\AFS\afs.bat
  96. chdir >>%2\AFS\afs.bat
  97. echo afs.exe %2\AFS >>%2\AFS\afs.bat
  98. echo register %2\AFS >%2\AFS\register.bat
  99. goto fin
  100.  
  101. :CPFTP
  102. echo install AFS to run in %1
  103. pause
  104. echo afs.exe %1 >afs.bat
  105. echo register %1 > register.bat
  106. echo.
  107. echo To run AFS, change current directory to %1 and just type AFS.BAT
  108. goto fin1
  109.  
  110. :fin
  111. echo AFS successfully installed in %2
  112. cd %2\AFS
  113. echo.
  114. echo To run AFS, change current directory to %2\AFS and just type AFS.BAT
  115. :fin1
  116. echo To register, run register.bat and fill order.txt.
  117. echo Don't hesitate to contact us, send your suggestions, comments and
  118. echo creticisms at afs-sim@pacwan.mm-soft.fr.
  119. echo Check our web server at www.mm-soft.fr/raw/afs-sim
  120. echo ---- Thank you for you support. ----
  121. echo.
  122.  
  123.