home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Education Master 1994 (4th Edition)
/
EDUCATIONS_MASTER_4TH_EDITION.bin
/
files
/
foodtion
/
slim2
/
fdinst.bat
< prev
next >
Wrap
DOS Batch File
|
1991-09-14
|
14KB
|
277 lines
ECHO OFF
CLS
IF "%1" == "" GOTO :ABORT
IF "%2" == "" GOTO :ABORT
IF "%1" == "%2" GOTO :ABORTA
if "%1" == "A:" goto :abort
if "%1" == "a:" goto :abort
if "%1" == "B:" goto :abort
if "%1" == "b:" goto :abort
if "%1" == "C:" goto :abort
if "%1" == "c:" goto :abort
if "%1" == "D:" goto :abort
if "%1" == "d:" goto :abort
if "%1" == "E:" goto :abort
if "%1" == "e:" goto :abort
if "%2" == "A:" goto :abort
if "%2" == "a:" goto :abort
if "%2" == "B:" goto :abort
if "%2" == "b:" goto :abort
if "%2" == "C:" goto :abort
if "%2" == "c:" goto :abort
if "%2" == "D:" goto :abort
if "%2" == "d:" goto :abort
if "%2" == "E:" goto :abort
if "%2" == "e:" goto :abort
%1:
cls
echo ****************************************************************
echo * *
echo * SLIMMER Rev 3.0 FLOPPY DISK Installation Routine *
echo * *
echo * Place INSTALLATION disk #1 in drive %1: *
echo * *
echo * Place BLANK FORMATTED disk #1 in drive %2: * *
echo * *
echo ****************************************************************
pause
cls
if not exist %1:3.exe goto :repeat10
if not exist %1:1.exe goto :notS3
if not exist %1:\*.daa goto :skipdaa
copy %1:\*.daa %2:*.dat
:skipdaa
if not exist %1:\regnew.dat goto :skipdat
copy %1:\*.dat %2:
:skipdat
%1:\1.exe %2:
cls
echo ****************************************************************
echo * *
echo * SLIMMER Rev 3.0 FLOPPY DISK Installation Routine *
echo * *
echo * INSTALLATION disk #1 remains in drive %1: *
echo * *
echo * *
echo * 360k %2: drive *
echo * Place BLANK FORMATTED 360k disk #2 in drive %2: *
echo * *
echo * 720k %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo * 1.2m %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo * 1.44m %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo ****************************************************************
pause
%1:\2.exe %2:
cls
echo ****************************************************************
echo * *
echo * SLIMMER Rev 3.0 FLOPPY DISK Installation Routine *
echo * *
echo * 360k %2: drive *
echo * Place BLANK FORMATTED 360k disk #3 in drive %2: *
echo * *
echo * 720k %2: drive *
echo * Place BLANK FORMATTED 720k disk #2 in drive %2: *
echo * *
echo * 1.2m %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo * 1.44m %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo ****************************************************************
pause
%1:\3.exe %2:
cls
echo ****************************************************************
echo * *
echo * SLIMMER Rev 3.0 FLOPPY DISK Installation Routine *
echo * *
echo * 360k %2: drive *
echo * Place BLANK FORMATTED 360k disk #4 in drive %2: *
echo * *
echo * 720k %2: drive *
echo * Continue with disk #2 in drive %2: *
echo * *
echo * 1.2m %2: drive *
echo * Place BLANK FORMATTED 1.2m disk #2 in drive %2: *
echo * *
echo * 1.44m %2: drive *
echo * Place BLANK FORMATTED 1.44m disk #2 in drive %2: *
echo * *
echo ****************************************************************
pause
if not exist %1:\4.exe goto :skip4
%1:\4.exe %2:
:skip4
if not exist %1:\4cal.exe goto :comment
%1:\4cal.exe %2:
goto :Comment
:repeat10
rem THIS SECTION HAS INSTALLATION FILES ON TWO 360K DISKS
IF NOT EXIST %1:1.exe GOTO :repeat10
if not exist %1:\*.daa goto :skipdaa2
copy %1:\*.daa %2:*.dat
:skipdaa2
if not exist %1:\regnew.dat goto :skipdat2
copy %1:\*.dat %2:
:skipdat2
%1:\1.exe %2:
cls
echo ****************************************************************
echo * *
echo * SLIMMER Rev 3.0 FLOPPY DISK Installation Routine *
echo * *
echo * INSTALLATION disk #1 remains in drive %1: *
echo * *
echo * *
echo * 360k %2: drive *
echo * Place BLANK FORMATTED 360k disk #2 in drive %2: *
echo * *
echo * 720k %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo * 1.2m %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo * 1.44m %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo ****************************************************************
pause
%1:\2.exe %2:
:repeat0
cls
echo ****************************************************************
echo * *
echo * SLIMMER Rev 3.0 FLOPPY DISK Installation Routine *
echo * Installing files from floppy disk %1: *
echo * To floppy disk %2: *
echo * *
echo * Place INSTALLATION disk #2 in drive %1: *
echo * *
echo * 360k %2: drive *
echo * Place BLANK FORMATTED 360k disk #3 in drive %2: *
echo * *
echo * 720k %2: drive *
echo * Place BLANK FORMATTED 720k disk #2 in drive %2: *
echo * *
echo * 1.2m %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo * 1.44m %2: drive *
echo * Continue with disk #1 in drive %2: *
echo * *
echo ****************************************************************
pause
cls
IF NOT EXIST %1:3.exe GOTO :repeat0
echo Copying Files from Disk # 2
%1:\3.exe %2:
cls
echo ****************************************************************
echo * SLIMMER Rev 3.0 FLOPPY DISK Installation Routine *
echo * Installing files from floppy disk %1: *
echo * To floppy disk %2: *
echo * *
echo * INSTALLATION disk #2 remains in drive %1: *
echo * *
echo * 360k %2: drive *
echo * Place BLANK FORMATTED 360k disk #4 in drive %2: *
echo * *
echo * 720k %2: drive *
echo * Continue with disk #2 in drive %2: *
echo * *
echo * 1.2m %2: drive *
echo * Place BLANK FORMATTED 1.2m disk #2 in drive %2: *
echo * *
echo * 1.44m %2: drive *
echo * Place BLANK FORMATTED 1.44m disk #2 in drive %2: *
echo * *
echo ****************************************************************
pause
if not exist %1:\4.exe goto :skip4a
%1:\4.exe %2:
:skip4a
if not exist %1:\4cal.exe goto :comment
%1:\4cal.exe %2:
goto :Comment1
:aborta
CLS
echo ******************************************************************
echo * *
echo * SLIMMER Rev 3.0 Floppy Disk Installation Routine *
echo * *
echo ******************************************************************
ECHO
ECHO The FROM floppy disk designation must be different from
ECHO the TO floppy disk designation. An example is as follows:
ECHO.
ECHO FDINST A B
ECHO.
ECHO.
echo INSTALLATION ABORTED
GOTO :QUIT
:abort
CLS
ECHO
echo ******************************************************************
echo * *
echo * SLIMMER Rev 3.0 Floppy Disk Installation Routine *
echo * *
echo ******************************************************************
ECHO
ECHO You must specify two disk drive letters after the HDINST command.
ECHO The first is the FROM floppy disk designation, the second is
ECHO the TO floppy disk designation. An example is as follows:
ECHO.
ECHO FDINST A B
ECHO.
echo Do NOT use colons with the drive letters.
ECHO.
ECHO.
echo INSTALLATION ABORTED
GOTO :QUIT
:notS3
CLS
ECHO
echo ******************************************************************
echo * *
echo * SLIMMER Rev 3.0 Floppy Disk Installation Routine *
echo * *
echo ******************************************************************
ECHO
ECHO The disk in drive %1: does not appear to be a SLIMMER Rev 3.0
ECHO distribution disk, or it may be disk #2 instead of disk #1 of
ECHO the two-disk distribution disk set.
ECHO.
ECHO.
echo INSTALLATION ABORTED
GOTO :QUIT
:Comment1
ECHO.
echo *****************************************************************
ECHO * CALTAB is on a separate disk. Copy it onto a working disk *
ECHO * and put the original in a safe place. *
echo *****************************************************************
ECHO.
:Comment
%2:
cls
ECHO.
echo *****************************************************************
ECHO * Start SLIMMER with the command S3 (return). If you wish to *
ECHO * see a demonstration of the program, type in DEMO (return). *
echo *****************************************************************
ECHO.
:Quit
echo on