home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / ppc250.zip / INSTALL.BAT next >
DOS Batch File  |  1993-01-26  |  5KB  |  165 lines

  1. @echo off
  2. if A==%1 goto doit
  3. if B==%1 goto doit
  4. if C==%1 goto doit
  5. if D==%1 goto doit
  6. if E==%1 goto doit
  7. if F==%1 goto doit
  8. if G==%1 goto doit
  9. if H==%1 goto doit
  10. if I==%1 goto doit
  11. if J==%1 goto doit
  12. if K==%1 goto doit
  13. if L==%1 goto doit
  14. if M==%1 goto doit
  15. if N==%1 goto doit
  16. if O==%1 goto doit
  17. if P==%1 goto doit
  18. if Q==%1 goto doit
  19. if R==%1 goto doit
  20. if S==%1 goto doit
  21. if T==%1 goto doit
  22. if U==%1 goto doit
  23. if V==%1 goto doit
  24. if W==%1 goto doit
  25. if X==%1 goto doit
  26. if Y==%1 goto doit
  27. if Z==%1 goto doit
  28. if a==%1 goto doit
  29. if b==%1 goto doit
  30. if c==%1 goto doit
  31. if d==%1 goto doit
  32. if e==%1 goto doit
  33. if g==%1 goto doit
  34. if h==%1 goto doit
  35. if i==%1 goto doit
  36. if j==%1 goto doit
  37. if k==%1 goto doit
  38. if l==%1 goto doit
  39. if m==%1 goto doit
  40. if n==%1 goto doit
  41. if o==%1 goto doit
  42. if p==%1 goto doit
  43. if q==%1 goto doit
  44. if r==%1 goto doit
  45. if s==%1 goto doit
  46. if t==%1 goto doit
  47. if u==%1 goto doit
  48. if v==%1 goto doit
  49. if w==%1 goto doit
  50. if x==%1 goto doit
  51. if y==%1 goto doit
  52. if z==%1 goto doit
  53. goto goof1
  54. :doit
  55. if exist %1:\PPCS\PPCFROLL.DBF goto goof2
  56. if exist %1:\PPCFROLL.DBF goto goof3
  57. cls
  58. ECHO.
  59. ECHO                PROFESSIONAL PHOTO CATALOG SYSTEM INSTALLATION
  60. ECHO.
  61. ECHO.
  62. ECHO               Welcome to the Professional Photo Catalog System!
  63. ECHO.
  64. ECHO     This batch file installs the Professional Photo Catalog System.  It will
  65. ECHO  create a directory, \PPCS, on disk drive %1 which you have designated.  It
  66. ECHO  will then install the program files in the new directory.  A batch file
  67. ECHO  named PPCS.BAT will be placed in the root directory to start PPCS.  Finally
  68. ECHO  it will start PPCS and ask a few questions to configure the program for your
  69. ECHO  computer system and then enter the PPCS program.  The PPCS program may be
  70. ECHO  started from the DOS prompt by typing the following:
  71. ECHO.
  72. ECHO.                                   PPCS
  73. ECHO.
  74. ECHO  If you want to terminate the installation process press (Ctrl) and (C) to
  75. ECHO  exit to DOS otherwise press any other key to continue.
  76. ECHO.
  77. ECHO.
  78. ECHO.
  79. PAUSE
  80. CLS
  81. ECHO.
  82. ECHO.
  83. ECHO         THE PROFESSIONAL PHOTO CATALOG SYSTEM IS BEING INSTALLED.
  84. @ REM ---Installation routine
  85. md %1:\PPCS
  86. copy PPCS.EXE %1:\PPCS
  87. copy PPCFR.DBF %1:\PPCS\PPCFROLL.DBF
  88. copy PPCFP.DBF %1:\PPCS\PPCFPICT.DBF
  89. copy PPCFO.DBF %1:\PPCS\PPCFOUTF.DBF
  90. copy PPCFO.DBF %1:\PPCS\PPCFPERM.DBF
  91. copy PPCDEMO?.* %1:\PPCS
  92. copy PPCSZAP.BAT %1:\PPCS\PPCSZAP.BAT
  93. copy PPCS.BAT %1:\
  94. %1:
  95. cd %1:\PPCS
  96. PPCS
  97. cd \
  98. cls
  99. ECHO.
  100. ECHO.
  101. ECHO    THE PROFESSIONAL PHOTO CATALOG SYSTEM HAS BEEN SUCCESSFULLY INSTALLED.
  102. goto end
  103. @ REM ---Goof 1 - No Target drive designated
  104. :goof1
  105. cls
  106. ECHO.
  107. ECHO                    PROFESSIONAL PHOTO CATALOG SYSTEM INSTALLATION
  108. ECHO.
  109. ECHO.
  110. ECHO.
  111. ECHO     This batch file installs the Professional Photo Catalog System.  To start
  112. ECHO  the installation process you must designate a drive into which PPCS will be
  113. ECHO  installed.  This is accomplished by entering the install command followed
  114. ECHO  by the letter designating the drive into which PPCS to to be installed.
  115. ECHO  To install PPCS on drive C and the installation enter the following
  116. ECHO  command at the DOS prompt:
  117. ECHO.
  118. ECHO                            INSTALL C
  119. ECHO.
  120. ECHO.
  121. PAUSE
  122. CLS
  123. goto end
  124. @ REM ---Goof 2 - PPCS already installed on target
  125. :goof2
  126. cls
  127. ECHO.
  128. ECHO                    PROFESSIONAL PHOTO CATALOG SYSTEM INSTALLATION
  129. ECHO.
  130. ECHO.
  131. ECHO.
  132. ECHO     Disk drive %1 was designated as the drive onto which PPCS is to be
  133. ECHO  install however PPCS is already installed on %1 drive.  Select another drive
  134. ECHO  or erase the PPCS files on drive %1 and start the install program again.
  135. ECHO  as follows:
  136. ECHO.
  137. ECHO.
  138. ECHO.
  139. PAUSE
  140. CLS
  141. goto end
  142. @ REM ---Goof 3 - PPCS installation diskette designated as the target
  143. :goof3
  144. CLS
  145. ECHO.
  146. ECHO               PROFESSIONAL PHOTO CATALOG SYSTEM INSTALLATION
  147. ECHO.
  148. ECHO.
  149. ECHO.
  150. ECHO     Disk drive %1 was designated as the drive onto which PPCS is to be
  151. ECHO  installed however this contains the INSTALLATION FILES.  Select another
  152. ECHO  drive other then drive %1 and start the installation program again.
  153. ECHO.
  154. ECHO     If PPCS is being installed from files on a hard disk and the hard disk
  155. ECHO  is also the target the installation files may not be placed in the root
  156. ECHO  directory.  Instead create any directory other then \PPCS, move the files
  157. ECHO  into that directory and start installation from that directory.
  158. ECHO.
  159. ECHO.
  160. PAUSE
  161. CLS
  162. goto end
  163. :end
  164. @echo on
  165.