home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Panoráma
/
computer_panorama_1997-12-hibas.iso
/
SHARE
/
Util
/
SGXMAS.ZIP
/
XMAS.EXE
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-07-20
|
3KB
|
80 lines
echo off
cls
if %1a == a: goto WHATDRIVE
if %1b == b: goto WHATDRIVE
if %1 == c: goto START
if %1 == C: goto START
if %1 == d: goto START
if %1 == D: goto START
if %1 == e: goto START
if %1 == E: goto START
if %1 == f: goto START
if %1 == F: goto START
goto NOTDRIVE
:START
echo ╔════════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Computerized Christmas Cards, Installation ║
echo ║ ║
echo ║ * This will create a directory called %1\XMAS on your hard disk, ║
echo ║ and will install the Christmas card files in that directory. ║
echo ║ ║
echo ║ * Once the program is installed you can run it by typing MAKECARD ║
echo ║ and pressing ENTER. ║
echo ║ ║
echo ║ * If you do not want this program installed at this time, press ║
echo ║ CTRL + C. ║
echo ║ ║
echo ╚════════════════════════════════════════════════════════════════════════╝
echo
pause
cls
if exist %1\XMAS\*.* goto CHECK
echo Making directory %1\XMAS . . .
md %1\XMAS
:CHECK
if exist MAKECARD.EXE goto CONTINUE
echo
echo Place the disk containing the Christmas card files in the active drive.
echo
pause
goto CHECK
:CONTINUE
echo
echo Copying Christmas card files . . .
copy *.* %1\XMAS
if not exist %1\XMAS\MAKECARD.EXE goto INSTALLERROR
cd %1\XMAS
echo
cls
echo Computerized Christmas Cards is installed on your hard disk.
echo
echo To make a Christmas card type MAKECARD and press ENTER.
echo
%1
echo
goto DONE
:WHATDRIVE
cls
echo Installation Error: To install the Christmas cards on your hard
echo disk, you must include the drive as part of the install command.
echo For example, to install the Christmas cards on drive C, type
echo INSTALL C: and press ENTER.
goto ERRORQUIT
:NOTDRIVE
cls
echo Installation Error: The hard drive letter can be a letter from C to F,
echo For example, INSTALL C: will install the Christmas cards on drive C.
echo You must include a colon after the drive letter.
goto ERRORQUIT
:INSTALLERROR
cls
echo Installation Error: Do you have enough space on your hard disk?
echo Did you give the proper hard drive letter?
goto ERRORQUIT
:ERRORQUIT
echo
echo Computerized Christmas Cards was not installed correctly.
echo
:DONE