home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / ppc250.zip / UPDATE.BAT < prev   
DOS Batch File  |  1993-01-24  |  4KB  |  142 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\PPCS.exe goto start
  56. goto goof2
  57. :start
  58. cls
  59. ECHO.
  60. ECHO               PROFESSIONAL PHOTO CATALOG SYSTEM INSTALLATION
  61. ECHO.
  62. ECHO.
  63. ECHO              Welcome to the Professional Photo Catalog System!
  64. ECHO.
  65. ECHO     This batch file will update the Professional Photo Catalog System.  It
  66. ECHO  will install the updated files in directory, \PPCS, on disk drive %1
  67. ECHO  which you have designated.  It will not damage any data you have entered
  68. ECHO  with an earlier version of this program.  After this batch file has been
  69. ECHO  completed successfully you may start PPCS as you normally would and any
  70. ECHO  necessary changes will be made automatically.
  71. ECHO.
  72. ECHO  Note: Version 2.00 and earlier can't be upgraded using this routine.
  73. ECHO        Write to the author for special procedure and instructions.
  74. ECHO.
  75. ECHO  If you want to terminate the update process press (Ctrl) and (C) to
  76. ECHO  exit to DOS otherwise press any other key to continue.
  77. ECHO.
  78. ECHO.
  79. PAUSE
  80. CLS
  81. ECHO.
  82. ECHO.
  83. ECHO            THE PROFESSIONAL PHOTO CATALOG SYSTEM IS BEING UPDATED
  84. @ REM ---Update routine
  85. copy PPCS.EXE %1:\PPCS
  86. copy PPCSDEMO?.* %1:\PPCS
  87. copy PPCSZAP.BAT %1:\PPCS
  88. copy PPCS.BAT %1:\
  89. cd \
  90. cls
  91. ECHO.
  92. ECHO.
  93. ECHO     THE PROFESSIONAL PHOTO CATALOG SYSTEM HAS BEEN SUCCESSFULLY UPDATED
  94. goto end
  95. @ REM ---Goof 1 - No Target drive designated
  96. :goof1
  97. cls
  98. ECHO.
  99. ECHO                PROFESSIONAL PHOTO CATALOG SYSTEM INSTALLATION
  100. ECHO.
  101. ECHO.
  102. ECHO.
  103. ECHO     This batch file updates the Professional Photo Catalog System.  To
  104. ECHO  start the update process you must designate a drive into which PPCS will
  105. ECHO  be updated.  This is accomplished by entering the update command followed
  106. ECHO  by the letter designating the drive on which PPCS is installed in the
  107. ECHO  \PPCS directory.
  108. ECHO.
  109. ECHO  Note: Version 2.00 and earlier can't be upgraded using this routine.
  110. ECHO        Write to the author for special procedure and instructions.
  111. ECHO.
  112. ECHO  To update PPCS on drive C and the enter the following command at the DOS
  113. ECHO  prompt:
  114. ECHO.
  115. ECHO                              UPDATE C
  116. ECHO.
  117. ECHO.
  118. PAUSE
  119. CLS
  120. goto end
  121. @ REM ---Goof 2 - PPCS already installed on target
  122. :goof2
  123. cls
  124. ECHO.
  125. ECHO                    Professional Photo Catalog System INSTALLATION
  126. ECHO.
  127. ECHO.
  128. ECHO.
  129. ECHO     Disk drive %1 was designated as the drive onto which PPCS is to be
  130. ECHO  updated however PPCS can not found in the \PPCS directory on the %1 drive.
  131. ECHO  If PPCS is being installed for the first time use the Install command to
  132. ECHO  install PPCS on the C drive for example by entering the following
  133. ECHO  command:
  134. ECHO.
  135. ECHO                                INSTALL C
  136. ECHO.
  137. ECHO.
  138. PAUSE
  139. goto end
  140. :end
  141. @echo on
  142.