home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
BUSINESS
/
RTK_B.ZIP
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1993-08-24
|
3KB
|
140 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 `R-T-K Training' on a hard
ECHO disk. If you DO NOT have one, then you will not be
ECHO able to use this software. Sorry, but the floppy drive
ECHO version is no longer being distributed.
ECHO.
ECHO The `R-T-K Training' 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 `R-T-K Training' 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
GOTO TRY1
:TRY1
ECHO OFF
CLS
IF EXIST %1RTK1.EXE GOTO COPY1
ECHO.
ECHO.
ECHO The disk in Drive %1 is NOT disk 1. Insert R-T-K 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 %1RTKC.TXT C:\RTK.BAT
GOTO UPNEXT
:DBAT
COPY %1RTKD.TXT C:\RTK.BAT
GOTO UPNEXT
:UPNEXT
%2
MD %2\RTK
CD %2\RTK
CLS
ECHO OFF
ECHO .
ECHO Note: Although `R-T-K Training' is being loaded into a
ECHO subdirectory called RTK, you will be able to start
ECHO the program without changing directories simply by
ECHO typing RTK and pressing the Enter key.
ECHO .
PAUSE
CLS
ECHO .
ECHO.
ECHO Please wait while loading program files from Disk 1 . . .
ECHO.
ECHO.
COPY %1*.* %2
ECHO.
ECHO.
ECHO Now place `R-T-K Training' Disk 2 into the A: Drive.
ECHO.
PAUSE
GOTO TRY2
:TRY2
ECHO OFF
CLS
IF EXIST %1RTK2.EXE GOTO COPY2
ECHO.
ECHO.
ECHO The disk in Drive %1 is NOT disk 2. Insert R-T-K Disk 2 and ...
ECHO.
ECHO.
PAUSE
GOTO TRY2
:COPY2
ECHO.
ECHO Please wait while loading program files from Disk 2 . . .
ECHO.
ECHO.
COPY %1*.* %2
ECHO.
ECHO.
ECHO.
ECHO Please wait while uncompressing the program files . . .
ECHO.
ECHO.
RTK1
RTK2
CD\
C:
CD\
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO That is it!!! You're finished. Now place your ORIGINAL
ECHO `R-T-K Training' disks away and use your hard drive copy
ECHO to permit employees to begin your own in-house Hazards
ECHO Communication Training Program. (Remember to run the
ECHO configuration routine first.) Refer to the operating
ECHO instructions for more details on how to use the `R-T-K
ECHO Training' program.
ECHO.
ECHO.
GOTO END
:END