home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
EDU
/
CHEMCOM.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-01-02
|
3KB
|
119 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 `Personal CHEMCOM' on a
ECHO HARD disk. If you DO NOT have one, then you will not be
ECHO able to use this software. Sorry, but the floppy drive
ECHO installation version is no longer being distributed.
ECHO Once installed on your hard disk, however, the program
ECHO files could be copied to and the program operated from a
ECHO 3.5" floppy disk.
ECHO.
ECHO The `Personal CHEMCOM' 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 `Personal CHEMCOM' 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. Sorry, but the floppy drive
ECHO installation version is no longer being distributed.
ECHO Once installed on your hard disk, however, the program
ECHO files could be copied to and the program operated from a
ECHO 3.5" floppy disk.
ECHO .
ECHO Otherwise . . .
ECHO .
PAUSE
CLS
GOTO TRY1
:TRY1
ECHO OFF
CLS
IF EXIST %1PCC1.EXE GOTO COPY1
ECHO.
ECHO.
ECHO The disk in Drive %1 is NOT the CHEMCOM disk. Insert proper disk and ...
ECHO.
ECHO.
PAUSE
GOTO TRY1
:COPY1
CD C:\
IF %2==C: GOTO CBAT
IF %2==c: GOTO CBAT
GOTO DBAT
:CBAT
COPY %1PCCC.TXT C:\PCC.BAT
GOTO UPNEXT
:DBAT
COPY %1PCCD.TXT C:\PCC.BAT
GOTO UPNEXT
:UPNEXT
%2
MD %2\CHEMCOM
CD %2\CHEMCOM
CLS
ECHO OFF
ECHO .
ECHO Note: Although `Personal CHEMCOM' is being loaded into a
ECHO subdirectory called CHEMCOM, you will be able to start
ECHO the program without changing directories simply by
ECHO typing PCC and pressing the Enter key.
ECHO .
PAUSE
CLS
ECHO .
ECHO.
ECHO Please wait while loading the program files . . .
ECHO.
ECHO.
COPY %1*.* %2
ECHO.
PCC1
ECHO.
PCC2
ECHO.
ECHO.
CD\
C:
CD\
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO That is it!!! You're finished. Now place your ORIGINAL
ECHO `Personal CHEMCOM' disk away and use your hard drive copy
ECHO to calculate downwind chemical exposures from accidental
ECHO releases from chemical processing plants.
ECHO .
ECHO Refer to the operating instructions for more details on
ECHO how to use `Personal CHEMCOM'.
ECHO.
ECHO.
GOTO END
:END