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
Wrap
DOS Batch File
|
1993-01-24
|
4KB
|
142 lines
@echo off
if A==%1 goto doit
if B==%1 goto doit
if C==%1 goto doit
if D==%1 goto doit
if E==%1 goto doit
if F==%1 goto doit
if G==%1 goto doit
if H==%1 goto doit
if I==%1 goto doit
if J==%1 goto doit
if K==%1 goto doit
if L==%1 goto doit
if M==%1 goto doit
if N==%1 goto doit
if O==%1 goto doit
if P==%1 goto doit
if Q==%1 goto doit
if R==%1 goto doit
if S==%1 goto doit
if T==%1 goto doit
if U==%1 goto doit
if V==%1 goto doit
if W==%1 goto doit
if X==%1 goto doit
if Y==%1 goto doit
if Z==%1 goto doit
if a==%1 goto doit
if b==%1 goto doit
if c==%1 goto doit
if d==%1 goto doit
if e==%1 goto doit
if g==%1 goto doit
if h==%1 goto doit
if i==%1 goto doit
if j==%1 goto doit
if k==%1 goto doit
if l==%1 goto doit
if m==%1 goto doit
if n==%1 goto doit
if o==%1 goto doit
if p==%1 goto doit
if q==%1 goto doit
if r==%1 goto doit
if s==%1 goto doit
if t==%1 goto doit
if u==%1 goto doit
if v==%1 goto doit
if w==%1 goto doit
if x==%1 goto doit
if y==%1 goto doit
if z==%1 goto doit
goto goof1
:doit
if exist %1:\PPCS\PPCS.exe goto start
goto goof2
:start
cls
ECHO.
ECHO PROFESSIONAL PHOTO CATALOG SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO Welcome to the Professional Photo Catalog System!
ECHO.
ECHO This batch file will update the Professional Photo Catalog System. It
ECHO will install the updated files in directory, \PPCS, on disk drive %1
ECHO which you have designated. It will not damage any data you have entered
ECHO with an earlier version of this program. After this batch file has been
ECHO completed successfully you may start PPCS as you normally would and any
ECHO necessary changes will be made automatically.
ECHO.
ECHO Note: Version 2.00 and earlier can't be upgraded using this routine.
ECHO Write to the author for special procedure and instructions.
ECHO.
ECHO If you want to terminate the update process press (Ctrl) and (C) to
ECHO exit to DOS otherwise press any other key to continue.
ECHO.
ECHO.
PAUSE
CLS
ECHO.
ECHO.
ECHO THE PROFESSIONAL PHOTO CATALOG SYSTEM IS BEING UPDATED
@ REM ---Update routine
copy PPCS.EXE %1:\PPCS
copy PPCSDEMO?.* %1:\PPCS
copy PPCSZAP.BAT %1:\PPCS
copy PPCS.BAT %1:\
cd \
cls
ECHO.
ECHO.
ECHO THE PROFESSIONAL PHOTO CATALOG SYSTEM HAS BEEN SUCCESSFULLY UPDATED
goto end
@ REM ---Goof 1 - No Target drive designated
:goof1
cls
ECHO.
ECHO PROFESSIONAL PHOTO CATALOG SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO This batch file updates the Professional Photo Catalog System. To
ECHO start the update process you must designate a drive into which PPCS will
ECHO be updated. This is accomplished by entering the update command followed
ECHO by the letter designating the drive on which PPCS is installed in the
ECHO \PPCS directory.
ECHO.
ECHO Note: Version 2.00 and earlier can't be upgraded using this routine.
ECHO Write to the author for special procedure and instructions.
ECHO.
ECHO To update PPCS on drive C and the enter the following command at the DOS
ECHO prompt:
ECHO.
ECHO UPDATE C
ECHO.
ECHO.
PAUSE
CLS
goto end
@ REM ---Goof 2 - PPCS already installed on target
:goof2
cls
ECHO.
ECHO Professional Photo Catalog System INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO Disk drive %1 was designated as the drive onto which PPCS is to be
ECHO updated however PPCS can not found in the \PPCS directory on the %1 drive.
ECHO If PPCS is being installed for the first time use the Install command to
ECHO install PPCS on the C drive for example by entering the following
ECHO command:
ECHO.
ECHO INSTALL C
ECHO.
ECHO.
PAUSE
goto end
:end
@echo on