home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / F15UGC-2.ZIP / 5INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1989-07-11  |  1.1 KB  |  46 lines

  1. echo off
  2. REM this program installs for 5 1/4" disks only
  3. REM test for existing F15 subdirectory
  4. if EXIST c:\F15\start.exe goto ClearDir
  5. if EXIST c:\F15\egame.exe goto ClearDir
  6. if EXIST c:\F15\end.exe goto ClearDir
  7. goto NewDir
  8.  
  9. :ClearDir
  10. REM  this will clear the subdirectory C:\F15
  11. cls
  12. REM echo Please answer "Y" to following question, it clears out old F15 files
  13. erase c:\F15\*.*<Y
  14. goto CopyFiles
  15.  
  16. :NewDir
  17. REM  this installs new F15 subdirectory; errorlevel 0 means success
  18. MD C:\F15
  19. if errorlevel 0 goto CopyFiles
  20. cls
  21. echo Error creating C:\F15 subdirectory, do not use INSTALL program.
  22. echo You must install F15 manually. Sorry. 
  23. goto End
  24.  
  25. :CopyFiles
  26. REM  this copies files from floppies in to C:\F15
  27.  
  28. cls
  29. echo Insert disk labelled "A" into your A: disk drive, then...
  30. PAUSE
  31. copy A:*.* C:\F15
  32.  
  33. cls
  34. echo Insert disk labelled "B" into your A: disk drive, then...
  35. PAUSE
  36. copy A:*.* C:\F15
  37. copy A:F15LOADR C:\F15.BAT
  38.  
  39. cls
  40. goto End
  41.  
  42. :End
  43. echo INSTALL FINISHED
  44. echo Please ignore any "Batch file missing" message
  45. erase c:\5install.bat
  46.