home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / SPIELE / BRETT / CHINESE / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-12-01  |  1KB  |  51 lines

  1. echo off
  2. cls
  3. if "%1" == "" goto ok
  4. if "%1" == "C:" goto ok
  5. if "%1" == "c:" goto ok
  6. if "%1" == "D:" goto ok
  7. if "%1" == "d:" goto ok
  8. if "%1" == "E:" goto ok
  9. if "%1" == "e:" goto ok
  10. if "%1" == "F:" goto ok
  11. if "%1" == "f:" goto ok
  12. goto error
  13. :ok
  14. echo  
  15. echo     CHINESE CHECKERS INSTALLATION ROUTINE
  16. echo  
  17. echo     This routine does the following things:
  18. echo        1.  Creates the \CHINESE subdirectory
  19. echo        2.  Copies the needed files on your hard drive
  20. echo        3.  Runs the program
  21. echo  
  22. echo     To play Chinese Checkers from now on, enter
  23. echo     the command CHINESE at your DOS prompt.
  24. echo  
  25. echo     (Press Ctrl-C or Ctrl-Break to Quit)
  26. pause
  27. if "%1" == "" goto null
  28. if not exist %1\chinese\*.* md %1\chinese
  29. echo Copying files ...
  30. copy chinese.bat %1\ > nul
  31. copy *.exe %1\chinese /v  > nul
  32. copy *.wl  %1\chinese /v  > nul
  33. copy *.txt %1\chinese /v  > nul
  34. copy *.ico %1\chinese /v  > nul
  35. if exist *.me copy *.me  %1\chinese /v  > nul
  36. %1
  37. chinese
  38. :null
  39. if not exist c:\chinese\*.* md c:\chinese
  40. echo Copying files ...
  41. copy chinese.bat c:\ > nul
  42. copy *.exe c:\chinese /v  > nul
  43. copy *.wl  c:\chinese /v  > nul
  44. copy *.txt c:\chinese /v  > nul
  45. copy *.ico %1\chinese /v  > nul
  46. if exist *.me copy *.me  c:\chinese /v  > nul
  47. c:
  48. chinese
  49. :error
  50. echo  INSTALL %1 is not a valid parameter.  Try INSTALL C:
  51.