home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 416.img / ADHCBINC.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1989-08-07  |  4KB  |  95 lines

  1. ECHO OFF
  2. REM ****************************************
  3. REM *                                      *
  4. REM * Electric Crayon Hard Disk Install    *
  5. REM *                                      *
  6. REM * Copyright (c) 1989 Polarware, Inc.   *
  7. REM *   Programmed by William B. Norris IV *
  8. REM *                                      *
  9. REM ****************************************
  10. CLS
  11. ECHO  
  12. ECHO Electric Crayon Install Procedure
  13. ECHO ───────────────────────────────────────────────────────────────────────────────
  14. ECHO  
  15. IF "%1" == "" GOTO INSTRUCTIONS
  16. IF "%1" == "help" GOTO INSTRUCTIONS
  17. IF "%1" == "HELP" GOTO INSTRUCTIONS
  18. IF "%1" == "/H" GOTO INSTRUCTIONS
  19. IF "%1" == "/h" GOTO INSTRUCTIONS
  20. IF "%1" == "-H" GOTO INSTRUCTIONS
  21. IF "%1" == "-h" GOTO INSTRUCTIONS
  22. IF "%1" == "-?" GOTO INSTRUCTIONS
  23. IF EXIST %1\EC.EXE GOTO ALREADY_THERE
  24. :INSTALL
  25. ECHO Installing Electric Crayon to %1
  26. ECHO  
  27. MKDIR %1 >NUL:
  28. MKDIR %1\DESC >NUL:
  29. MKDIR %1\PICTURES >NUL:
  30. REM ****************************************
  31. REM *                                      *
  32. REM * Rename the AUTOEXEC.BAT file so that *
  33. REM * people installing this in their root *
  34. REM * directory don't wipe out their       *
  35. REM * original file.  You're welcome.      *
  36. REM *                                      *
  37. REM ****************************************
  38. rename autoexec.bat ecexec.bat
  39. COPY *.* %1
  40. rename ecexec.bat autoexec.bat
  41. REM ****************************************
  42. REM *                                      *
  43. REM * Install the Electric Crayon pictures *
  44. REM *                                      *
  45. REM ****************************************
  46. CLS
  47. ECHO Copying the picture files:
  48. ECHO ───────────────────────────────────────────────────────────────────────────────
  49. COPY PICTURES\*.* %1\PICTURES
  50. REM ****************************************
  51. REM *                                      *
  52. REM * Copy the description files.          *
  53. REM *                                      *
  54. REM ****************************************
  55. CLS
  56. ECHO Copying the description files:
  57. ECHO ───────────────────────────────────────────────────────────────────────────────
  58. COPY DESC\*.* %1\DESC
  59. GOTO END
  60. :ALREADY_THERE
  61. REM **********************************************
  62. REM *                                            *
  63. REM * EC already installed.  Want to overwrite ? *
  64. REM *                                            *
  65. REM **********************************************
  66. ECHO Electric Crayon already installed.
  67. ECHO Install procedure aborted.
  68. GOTO END
  69. :INSTRUCTIONS
  70. REM ****************************************
  71. REM *                                      *
  72. REM * INSTRUCTIONS                         *
  73. REM *                                      *
  74. REM ****************************************
  75. ECHO This program is used to install Electric Crayon on a hard disk.
  76. ECHO Simply type INSTALL and the pathname where you would like the
  77. ECHO Electric Crayon program to be installed.
  78. ECHO  
  79. ECHO For example:
  80. ECHO     INSTALL C:\EC
  81. ECHO     INSTALL C:\GAMES\EC
  82. ECHO     INSTALL D:\
  83. ECHO  
  84. ECHO NOTE:  The directory in which you are installing Electric Crayon
  85. ECHO ─────  must already exist.  If it doesn't, you must create the
  86. ECHO        subdirectory by entering the appropriate mkdir (md) commands
  87. ECHO        at the DOS prompt.
  88. REM ****************************************
  89. REM *                                      *
  90. REM * END                                  *
  91. REM *                                      *
  92. REM ****************************************
  93. ECHO  
  94. :END
  95.