home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Education Master 1994 (4th Edition)
/
EDUCATIONS_MASTER_4TH_EDITION.bin
/
files
/
foodtion
/
slim2
/
hdinst.bat
< prev
Wrap
DOS Batch File
|
1993-03-31
|
9KB
|
312 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 "%1" == "F:" goto :abort
if "%1" == "f:" goto :abort
if "%1" == "G:" goto :abort
if "%1" == "g:" goto :abort
if "%1" == "H:" goto :abort
if "%1" == "h:" goto :abort
if "%1" == "I:" goto :abort
if "%1" == "i:" goto :abort
if "%1" == "J:" goto :abort
if "%1" == "j:" goto :abort
if "%1" == "K:" goto :abort
if "%1" == "k:" goto :abort
if "%1" == "L:" goto :abort
if "%1" == "l:" 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
if "%2" == "F:" goto :abort
if "%2" == "f:" goto :abort
if "%2" == "G:" goto :abort
if "%2" == "g:" goto :abort
if "%2" == "H:" goto :abort
if "%2" == "h:" goto :abort
if "%2" == "I:" goto :abort
if "%2" == "i:" goto :abort
if "%2" == "J:" goto :abort
if "%2" == "j:" goto :abort
if "%2" == "K:" goto :abort
if "%2" == "k:" goto :abort
if "%2" == "L:" goto :abort
if "%2" == "l:" goto :abort
cls
ECHO.
ECHO.
ECHO.
echo ******************************************************************
echo * *
echo * SLIMMER Rev 3.0 Hard Disk Installation Routine *
echo * *
echo ******************************************************************
ECHO.
ECHO.
ECHO.
pause
cls
ECHO.
ECHO.
ECHO.
echo [Subdirectory SLIM30 will be created on your hard disk....]
ECHO.
%2:
cd\
echo Making subdirectory SLIM30
md\slim30
cd\slim30
echo Removing read-only attrib from old *.dat files
echo (for Rev 3.0 copies downloaded from CompuServe)
attrib -r *.dat
echo A "File not found - *.DAT" comment is normal.....
if not exist %1:3.exe goto :repeat10
if not exist %1:1.exe goto :notS3
echo Copying all files to your hard disk
if not exist %1:\*.bat goto :skipbat
copy %1:\*.bat
:skipbat
if not exist %1:\*.dat goto :skipdat
copy %1:\*.dat
:skipdat
if not exist %1:\*.com goto :skipcom
copy %1:\*.com
:skipcom
if not exist %1:\*.doc goto :skipdoc
copy %1:\*.doc
:skipdoc
if not exist %1:\*.txt goto :skiptxt
copy %1:\*.txt
:skiptxt
cls
echo.
echo Extracting newer files into your SLIM30 subdirectory
echo.
%1:\1.exe -n
%1:\2.exe -n
%1:\3.exe -n
if not exist %1:\4.exe goto :skip4
%1:\4.exe -n
:skip4
if not exist %1:\4cal.exe goto :comment
%1:\4cal.exe -n
goto :Comment
:repeat10
cls
ECHO.
ECHO.
ECHO.
echo ******************************************************************
echo * *
echo * Insert Distribution Disk # 1 into Floppy Drive %1: *
echo * and press any key *
echo * *
echo ******************************************************************
ECHO.
ECHO.
ECHO.
pause
cls
IF NOT EXIST %1:1.exe GOTO :repeat10
echo Copying Files from Disk # 1
if not exist %1:\*.bat goto :skipbat2
copy %1:\*.bat
:skipbat2
if not exist %1:\*.dat goto :skipdat2
copy %1:\*.dat
:skipdat2
if not exist %1:\*.com goto :skipcom2
copy %1:\*.com
:skipcom2
if not exist %1:\*.doc goto :skipdoc2
copy %1:\*.doc
:skipdoc2
if not exist %1:\*.txt goto :skiptxt2
copy %1:\*.txt
:skiptxt2
cls
echo.
echo Extracting newer files into your SLIM30 subdirectory
echo.
%1:\1.exe -n
%1:\2.exe -n
:repeat0
cls
ECHO.
ECHO.
ECHO.
echo ******************************************************************
echo * *
echo * Insert Disk # 2 into Floppy Drive %1: *
echo * and press any key *
echo * *
echo ******************************************************************
ECHO.
ECHO.
ECHO.
pause
cls
IF NOT EXIST %1:3.exe GOTO :repeat0
echo Copying Files from Disk # 2
if not exist %1:\*.bat goto :skipbat3
copy %1:\*.bat
:skipbat3
if not exist %1:\*.com goto :skipcom3
copy %1:\*.com
:skipcom3
if not exist %1:\*.doc goto :skipdoc3
copy %1:\*.doc
:skipdoc3
if not exist %1:\*.txt goto :skiptxt3
copy %1:\*.txt
:skiptxt3
%1:\3.exe -n
if not exist %1:\4.exe goto :skip4a
%1:\4.exe -n
:skip4a
if not exist %1:\4cal.exe goto :comment1
%1:\4cal.exe -n
goto :Comment1
:aborta
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO
echo ******************************************************************
echo * *
echo * SLIMMER Rev 3.0 Hard Disk Installation Routine *
echo * *
echo ******************************************************************
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO
ECHO The FROM floppy disk designation must be different from
ECHO the TO hard disk designation. An example is as follows:
ECHO.
ECHO HDINST A C
ECHO.
ECHO.
echo INSTALLATION ABORTED
GOTO :QUIT
:abort
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO
echo ******************************************************************
echo * *
echo * SLIMMER Rev 3.0 Hard Disk Installation Routine *
echo * *
echo ******************************************************************
ECHO.
ECHO.
ECHO.
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 hard disk designation. An example is as follows:
ECHO.
ECHO HDINST A C
ECHO.
echo Do NOT use colons with the drive letters.
ECHO.
ECHO.
echo INSTALLATION ABORTED
GOTO :QUIT
:notS3
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO
echo ******************************************************************
echo * *
echo * SLIMMER Rev 3.0 Hard Disk Installation Routine *
echo * *
echo ******************************************************************
ECHO.
ECHO.
ECHO.
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
cls
ECHO.
ECHO.
ECHO.
echo ******************************************************************
echo * FOR REGISTERED VERSION ONLY *
echo * *
echo * Insert CALTAB Disk into Floppy Drive %1: *
echo * and press any key *
echo * *
echo * OR CTRL BREAK TO EXIT - TO START SLIMMER TYPE IN S3 *
echo ******************************************************************
ECHO.
ECHO.
ECHO.
pause
cls
IF NOT EXIST %1:CALTAB.EXE GOTO :comment1
echo Copying Files from CALTAB Disk
if not exist %1:\*.bat goto :skipbat4
copy %1:\*.bat
:skipbat4
if not exist %1:\*.com goto :skipcom4
copy %1:\*.com
:skipcom4
if not exist %1:\*.doc goto :skipdoc4
copy %1:\*.doc
:skipdoc4
if not exist %1:\*.txt goto :skiptxt4
copy %1:\*.txt
:skiptxt4
if not exist %1:\*.exe goto :skipexe4
copy %1:\*.exe
:skipexe4
:Comment
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