home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
BUSINESS
/
MASS20_B.ZIP
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1994-01-01
|
3KB
|
145 lines
ECHO OFF
CLS
IF %1x==x GOTO NODRIVE
IF %2x==x GOTO NODRIVE
IF %1x==%2x GOTO NODRIVE
GOTO YESDRIVE
:NODRIVE
ECHO.
ECHO This routine is for installing `MASS Version 20' on a hard
ECHO disk. If you DO NOT have one, then you will not be
ECHO able to use this software. Sorry, but a floppy drive
ECHO version is not available.
ECHO.
ECHO The `MASS Version 20' installation routine requires that
ECHO you specify two drives. You must specify the drive you are
ECHO at now and the hard drive where you want it installed.
ECHO It must be either the C or D hard drive.
ECHO .
ECHO For example, INSTALL A: C: . . . Please try again.
GOTO END
:YESDRIVE
ECHO .
ECHO .
ECHO This routine is for installing `MASS Version 20' on a C or D
ECHO hard disk. If you do not want to do this at this time,
ECHO then press the "Ctrl" + "Break" keys together and then "Y"
ECHO to stop this batch file.
ECHO .
ECHO Otherwise . . .
ECHO .
PAUSE
CLS
GOTO TRY1
:TRY1
ECHO OFF
CLS
IF EXIST %1M201.EXE GOTO COPY1
ECHO.
ECHO.
ECHO The disk in Drive %1 is NOT disk 1. Insert MASS Disk 1 and ...
ECHO.
ECHO.
PAUSE
GOTO TRY1
:COPY1
CD C:\
IF %2==C: GOTO CBAT
IF %2==c: GOTO CBAT
GOTO DBAT
:CBAT
COPY %1M20C.TXT C:\MASS.BAT
GOTO UPNEXT
:DBAT
COPY %1M20D.TXT C:\MASS.BAT
GOTO UPNEXT
:UPNEXT
%2
MD %2\MASS20
CD %2\MASS20
CLS
ECHO OFF
ECHO .
ECHO Note: Although `MASS Version 20' is being loaded into a sub-
ECHO directory called MASS20, you will be able to start the
ECHO program without changing directories simply by typing
ECHO MASS and pressing the Enter key.
ECHO .
PAUSE
CLS
ECHO .
ECHO.
ECHO Please wait while loading the program files . . .
ECHO.
ECHO.
COPY %1*.* %2
CLS
ECHO .
ECHO.
ECHO Now remove Disk 1 and insert installation Disk 2. Then . . .
ECHO.
PAUSE
GOTO TRY2
:TRY2
ECHO OFF
CLS
IF EXIST %1M202.EXE GOTO COPY2
ECHO.
ECHO.
ECHO The disk in Drive %1 is NOT disk 2. Insert MASS Disk 2 and ...
ECHO.
ECHO.
PAUSE
GOTO TRY2
:COPY2
CLS
ECHO .
ECHO.
ECHO Please wait while loading the program files from Disk 2 . . .
ECHO.
ECHO.
COPY %1*.* %2
ECHO.
ECHO.
M201
ECHO.
ECHO.
M202
ECHO.
ECHO.
CD\
C:
CD\
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO That is it!!! You're finished. Now place your ORIGINAL
ECHO `MASS Version 20' disk away and use your hard drive copy
ECHO to manage your business's work orders and parts inventory
ECHO operations.
ECHO .
ECHO Enter MASS to begin the program. Refer to the operating
ECHO instructions for more details on how to use the `MASS
ECHO Version 20' program.
ECHO.
ECHO.
GOTO END
:END