home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / e / excal37.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-02-19  |  954b  |  37 lines

  1. echo off
  2. if "%1" == "" goto NOINPUT
  3. if not exist %1\*.* goto DIRERROR
  4.  
  5. echo Copying files to %1
  6. copy *.exe %1
  7. copy *.xc2 %1
  8. if not exist %1\xc2 goto MAKESUB
  9.  
  10. :COPYXCL
  11. echo Copying files to %1\XC2
  12. copy *.xcl %1\XC2
  13. echo All Done!
  14. goto DONE
  15.  
  16. :MAKESUB
  17. echo Creating directory %1\XC2
  18. md %1\xc2
  19. goto COPYXCL
  20.  
  21. :DIRERROR
  22. echo BBS directory %1 does not exist or is empty!
  23. echo This program checks for files in the subdirectory,
  24. echo since Excalibur! is normally placed in the BBS directory.
  25. echo If subdirectory %1 is intentionally empty, copy a dummy
  26. echo file into the subdirectory and try again using the same
  27. echo command as before.  After the installation is complete,
  28. echo delete the dummy file from %1.
  29. echo  
  30.  
  31. :NOINPUT
  32. echo    This batch file copies the Excalibur! II game files
  33. echo    into the appropriate directories.  The format is
  34. echo    INSTALL C:\BBSDIR   where BBSDIR is your BBS root directory.
  35. echo  
  36.  
  37. :DONE