home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sunny 1,000 Collection
/
SUNNY1000.iso
/
Files
/
Dos
/
Demogm
/
MARMEMO.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-07-26
|
3KB
|
94 lines
ECHO off
CLS
IF %1x == x GOTO NoParms
IF %1 == a: GOTO OkSource
IF %1 == b: GOTO OkSource
IF %1 == A: GOTO OkSource
IF %1 == B: GOTO OkSource
IF %1 == c: GOTO NoSource
IF %1 == d: GOTO NoSource
IF %1 == C: GOTO NoSource
IF %1 == D: GOTO NoSource
IF %1 == e: GOTO NoSource
IF %1 == f: GOTO NoSource
IF %1 == E: GOTO NoSource
IF %1 == F: GOTO NoSource
ECHO Only A: and B: are allowed as source drives...
ECHO Only C: D: E: and F: are allowed as destination drives...
GOTO NoParms
:OkSource
IF %3 == c: GOTO OkDest
IF %3 == d: GOTO OkDest
IF %3 == C: GOTO OkDest
IF %3 == D: GOTO OkDest
IF %3 == e: GOTO OkDest
IF %3 == f: GOTO OkDest
IF %3 == E: GOTO OkDest
IF %3 == F: GOTO OkDest
ECHO Only C: D: E: and F: are allowed as destination drives...
GOTO NoParms
:OkDest
%1
CD\
IF NOT EXIST MMDEMO.EXE GOTO WrongSrc
IF NOT EXIST %1\MMDEMO\*.* MD %3\MMDEMO
COPY %1\*.* %3\MMDEMO
IF NOT EXIST %3\MMDEMO\MMDEMO.EXE GOTO NoInstal
%3
GOTO GoodInst
:WrongSrc
ECHO Place the MARTIAN MEMORANDUM demo disk into drive
PAUSE
GOTO OkDest
:NoSource
A:
CD\
IF NOT EXIST MMDEMO.EXE GOTO WrongSrc
IF NOT EXIST %1\MMDEMO\. MD %1\MMDEMO
COPY A:\*.* %1\MMDEMO
IF NOT EXIST %1\MMDEMO\MMDEMO.EXE GOTO NoInstal
%1
GOTO GoodInst
:GoodInst
CLS
ECHO MARTIAN MEMORANDUM has been successfully installed.
ECHO Type: MMDEMO to execute.
CD \MMDEMO
GOTO Done
:NoInstal
ECHO There was an error during installation. Check to see that you have enough
ECHO free space on your hard disk (you need at least 1.2 meg free) and that
ECHO you are using INSTALL correctly.
GOTO NoParms
GOTO done
:NoParms
ECHO ----------------------------------------------------------------------------
ECHO INSTALL will create a directory named MMDEMO on your hard drive.
ECHO The files from your copy of MARTIAN MEMORANDUM demo will be copied
ECHO to the MMDEMO directory on your hard disk.
ECHO Only hard drives C: D: E: or F: are allowed.
ECHO ----------------------------------------------------------------------------
ECHO You must supply the letter for your hard drive followed by a semi-colon
ECHO For example, if you want to copy to drive C:
ECHO type:
ECHO INSTALL C:
ECHO ----------------------------------------------------------------------------
ECHO You can also specify floppy drive A: or B: as the drive containing your
ECHO MARTIAN MEMORANDUM demo disk. If you do not specify a drive, INSTALL will
ECHO assume you are using drive A:. Only drive A: or B: are allowed.
ECHO For example, if you want to install to hard disk D: from floppy drive B:
ECHO type:
ECHO INSTALL B: TO D:
ECHO *** You must type the 'TO' if you are using this method. ***
ECHO ----------------------------------------------------------------------------
GOTO Done
:Done