home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
CO
/
CO026.ZIP
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1991-04-12
|
3KB
|
116 lines
echo off
rem If you know enough about DOS and want to install the files yourself, just
rem copy the files to your hard disk. You don't have to copy INSTALL.BAT to
rem your hard disk.
echo Copr. 1991 Barn Owl Software, all rights reserved
echo
echo
echo Syntax INSTALL x: [path]
echo
echo
echo x: the disk drive on which you want to install PCFDial
echo
echo [path] optional path where PCFDial files should go. Defaults to
echo "\PCFDIAL" if you don't specify another path.
echo
echo NOTE: you must specify a drive. You only need to specify a path if you
echo want to override the default. You MUST put at least one space between
echo the drive and the path if you specify both options.
echo
rem Did user specify destination drive?
if "%1"=="" goto end
if "%1"=="A:" goto cont1
if "%1"=="B:" goto cont1
if "%1"=="C:" goto cont1
if "%1"=="D:" goto cont1
if "%1"=="E:" goto cont1
if "%1"=="F:" goto cont1
if "%1"=="G:" goto cont1
if "%1"=="H:" goto cont1
if "%1"=="I:" goto cont1
if "%1"=="J:" goto cont1
if "%1"=="K:" goto cont1
if "%1"=="L:" goto cont1
if "%1"=="M:" goto cont1
if "%1"=="N:" goto cont1
if "%1"=="O:" goto cont1
if "%1"=="P:" goto cont1
if "%1"=="Q:" goto cont1
if "%1"=="R:" goto cont1
if "%1"=="S:" goto cont1
if "%1"=="T:" goto cont1
if "%1"=="U:" goto cont1
if "%1"=="V:" goto cont1
if "%1"=="W:" goto cont1
if "%1"=="X:" goto cont1
if "%1"=="Y:" goto cont1
if "%1"=="Z:" goto cont1
if "%1"=="a:" goto cont1
if "%1"=="b:" goto cont1
if "%1"=="c:" goto cont1
if "%1"=="d:" goto cont1
if "%1"=="e:" goto cont1
if "%1"=="f:" goto cont1
if "%1"=="g:" goto cont1
if "%1"=="h:" goto cont1
if "%1"=="i:" goto cont1
if "%1"=="j:" goto cont1
if "%1"=="k:" goto cont1
if "%1"=="l:" goto cont1
if "%1"=="m:" goto cont1
if "%1"=="n:" goto cont1
if "%1"=="o:" goto cont1
if "%1"=="p:" goto cont1
if "%1"=="q:" goto cont1
if "%1"=="r:" goto cont1
if "%1"=="s:" goto cont1
if "%1"=="t:" goto cont1
if "%1"=="u:" goto cont1
if "%1"=="v:" goto cont1
if "%1"=="w:" goto cont1
if "%1"=="x:" goto cont1
if "%1"=="y:" goto cont1
if "%1"=="z:" goto cont1
rem else...
echo YOU MUST SPECIFY A VALID DESTINATION DRIVE
goto end
:cont1
rem Switch to the master disk drive if necessary.
if EXIST PCFDIAL.EXE goto cont2
rem else...
echo YOU MUST RUN THIS INSTALL PROGRAM FROM THE DEFAULT DRIVE
echo Enter the name of the drive holding the master PCFDial disk
echo (usually A: or B:), press ENTER, then re-run Install.
goto end
:cont2
echo Creating destination directory (if it doesn't already exist)
if "%2"=="" md %1\PCFDIAL >NUL
if NOT "%2"=="" md %1%2 >NUL
echo Copying PCFDial files to the destination directory
if "%2"=="" copy READ.* %1\PCFDIAL
if "%2"=="" copy PCFD*.* %1\PCFDIAL
if "%2"=="" copy *.INF %1\PCFDIAL
if NOT "%2"=="" copy READ.* %1%2
if NOT "%2"=="" copy PCFD*.* %1%2
if NOT "%2"=="" copy *.INF %1%2
echo Switching to the PCFDial directory
%1
if "%2"=="" cd \PCFDIAL
if NOT "%2"=="" cd %2
echo
echo
echo PCFDIAL TRANSFERRED
echo
echo Please type "PCFDIAL /INSTALL" and press ENTER to customize the
echo program for your needs.
:end
echo