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 >
Wrap
DOS Batch File
|
1993-01-26
|
5KB
|
165 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\PPCFROLL.DBF goto goof2
if exist %1:\PPCFROLL.DBF goto goof3
cls
ECHO.
ECHO PROFESSIONAL PHOTO CATALOG SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO Welcome to the Professional Photo Catalog System!
ECHO.
ECHO This batch file installs the Professional Photo Catalog System. It will
ECHO create a directory, \PPCS, on disk drive %1 which you have designated. It
ECHO will then install the program files in the new directory. A batch file
ECHO named PPCS.BAT will be placed in the root directory to start PPCS. Finally
ECHO it will start PPCS and ask a few questions to configure the program for your
ECHO computer system and then enter the PPCS program. The PPCS program may be
ECHO started from the DOS prompt by typing the following:
ECHO.
ECHO. PPCS
ECHO.
ECHO If you want to terminate the installation process press (Ctrl) and (C) to
ECHO exit to DOS otherwise press any other key to continue.
ECHO.
ECHO.
ECHO.
PAUSE
CLS
ECHO.
ECHO.
ECHO THE PROFESSIONAL PHOTO CATALOG SYSTEM IS BEING INSTALLED.
@ REM ---Installation routine
md %1:\PPCS
copy PPCS.EXE %1:\PPCS
copy PPCFR.DBF %1:\PPCS\PPCFROLL.DBF
copy PPCFP.DBF %1:\PPCS\PPCFPICT.DBF
copy PPCFO.DBF %1:\PPCS\PPCFOUTF.DBF
copy PPCFO.DBF %1:\PPCS\PPCFPERM.DBF
copy PPCDEMO?.* %1:\PPCS
copy PPCSZAP.BAT %1:\PPCS\PPCSZAP.BAT
copy PPCS.BAT %1:\
%1:
cd %1:\PPCS
PPCS
cd \
cls
ECHO.
ECHO.
ECHO THE PROFESSIONAL PHOTO CATALOG SYSTEM HAS BEEN SUCCESSFULLY INSTALLED.
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 installs the Professional Photo Catalog System. To start
ECHO the installation process you must designate a drive into which PPCS will be
ECHO installed. This is accomplished by entering the install command followed
ECHO by the letter designating the drive into which PPCS to to be installed.
ECHO To install PPCS on drive C and the installation enter the following
ECHO command at the DOS prompt:
ECHO.
ECHO INSTALL 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 install however PPCS is already installed on %1 drive. Select another drive
ECHO or erase the PPCS files on drive %1 and start the install program again.
ECHO as follows:
ECHO.
ECHO.
ECHO.
PAUSE
CLS
goto end
@ REM ---Goof 3 - PPCS installation diskette designated as the target
:goof3
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 installed however this contains the INSTALLATION FILES. Select another
ECHO drive other then drive %1 and start the installation program again.
ECHO.
ECHO If PPCS is being installed from files on a hard disk and the hard disk
ECHO is also the target the installation files may not be placed in the root
ECHO directory. Instead create any directory other then \PPCS, move the files
ECHO into that directory and start installation from that directory.
ECHO.
ECHO.
PAUSE
CLS
goto end
:end
@echo on