home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Game Programming Gurus
/
Tricks_of_the_Game_Programming_Gurus_SAMS_Publishing_1994.iso
/
guru.bat
next >
Wrap
DOS Batch File
|
1994-07-18
|
7KB
|
226 lines
@ECHO OFF
REM ---------------------------------------------------------------
REM GURU.BAT
REM Installation program for "Tricks of the Game-Programming Gurus"
REM ---------------------------------------------------------------
REM --------------------------------------------------
REM Note: You must run INSTALL.BAT to properly execute
REM this batch file.
REM --------------------------------------------------
IF .%1 == . GOTO RUN_INSTALL
IF NOT EXIST %1\NUL GOTO NO_DRIVE
IF %2 == SOURCE GOTO SOURCE_INSTALL
IF %2 == ALL GOTO INSTALL_ALL
CLS
ECHO
ECHO ╔══════════════════════════════════════════════════════════╗
ECHO ║ "Tricks of the Game-Programming Gurus" Disk Installation ║
ECHO ╚══════════════════════════════════════════════════════════╝
ECHO
ECHO You have chosen to install the %4 %5 %6
ECHO software to your %1 hard drive. The files will take
ECHO approximately %3 MB of disk space.
ECHO
ECHO
ECHO If this is NOT what you want to do, press the Ctrl+C
ECHO keys to end this batch program.
ECHO
ECHO ════════════════════════════════════════════════════════════
ECHO
ECHO
ECHO
ECHO
PAUSE
CLS
XCOPY \%2\*.* /s %1\%2\
CLS
ECHO
ECHO
ECHO ──────────────────────────────────────────────────────────────────────────
ECHO The installation of %4 %5 %6 is complete!
ECHO ──────────────────────────────────────────────────────────────────────────
ECHO
ECHO ══════════════════════════════════════════════════════════════════════════
ECHO
ECHO You'll find the files in the %1\%2 directory of your
ECHO hard drive. Be sure to read the book for more information
ECHO about this program.
ECHO
ECHO You'll now be returned to the install menu.
ECHO Press Esc to exit the menu and return to DOS.
ECHO
ECHO ══════════════════════════════════════════════════════════════════════════
ECHO
ECHO
PAUSE
GOTO FINISHED
REM ************************************************************************
:SOURCE_INSTALL
CLS
ECHO
ECHO ╔══════════════════════════════════════════════════════════╗
ECHO ║ "Tricks of the Game-Programming Gurus" Disk Installation ║
ECHO ╚══════════════════════════════════════════════════════════╝
ECHO
ECHO You have chosen to install only the book's source code
ECHO and utilities to your %1 hard drive. The files will take
ECHO approximately %3 MB of disk space.
ECHO
ECHO
ECHO If this is NOT what you want to do, press the Ctrl+C
ECHO keys to end this batch program.
ECHO
ECHO ════════════════════════════════════════════════════════════
ECHO
ECHO
ECHO
ECHO
PAUSE
CLS
XCOPY \SOURCE\*.* /s %1\GURU\SOURCE\
CLS
ECHO
ECHO
ECHO ──────────────────────────────────────────────────────────────────────────
ECHO The installation of the source files is complete!
ECHO ──────────────────────────────────────────────────────────────────────────
ECHO
ECHO ══════════════════════════════════════════════════════════════════════════
ECHO
ECHO You'll find the files in the %1\GURU\SOURCE directory of your hard
ECHO drive, arranged by chapter. For example, the source code for
ECHO Chapter 16 is in the \GURU\SOURCE\CHAP_16 subdirectory.
ECHO
ECHO You'll now be returned to the install menu.
ECHO Press Esc to exit the menu and return to DOS.
ECHO
ECHO ══════════════════════════════════════════════════════════════════════════
ECHO
ECHO
PAUSE
GOTO FINISHED
REM ************************************************************************
:INSTALL_ALL
CLS
ECHO
ECHO ╔══════════════════════════════════════════════════════════╗
ECHO ║ "Tricks of the Game-Programming Gurus" Disk Installation ║
ECHO ╚══════════════════════════════════════════════════════════╝
ECHO
ECHO You have chosen to install all the software on this
ECHO disk to your %1 hard drive. The files will take
ECHO approximately %3 MB of disk space.
ECHO
ECHO
ECHO If this is NOT what you want to do, press the Ctrl+C
ECHO keys to end this batch program.
ECHO
ECHO ════════════════════════════════════════════════════════════
ECHO
ECHO
PAUSE
CLS
XCOPY \BMASTER\*.* /S %1\GURU\BMASTER\
CLS
XCOPY \DIGIPAK\*.* /S %1\GURU\DIGIPAK\
CLS
XCOPY \BLAKE\*.* /S %1\GURU\BLAKE\
CLS
XCOPY \BRIX\*.* /S %1\GURU\BRIX\
CLS
XCOPY \DOOM\*.* /S %1\GURU\DOOM\
CLS
XCOPY \ELECTRO\*.* /S %1\GURU\ELECTRO\
CLS
XCOPY \EPICBALL\*.* /S %1\GURU\EPICBALL\
CLS
XCOPY \HEXXAGON\*.* /S %1\GURU\HEXXAGON\
CLS
XCOPY \HHARRY\*.* /S %1\GURU\HHARRY\
CLS
XCOPY \JILL\*.* /S %1\GURU\JILL\
CLS
XCOPY \KILO\*.* /S %1\GURU\KILO\
CLS
XCOPY \OVERKIL\*.* /S %1\GURU\OVERKIL\
CLS
XCOPY \SOLAR\*.* /S %1\GURU\SOLAR\
CLS
XCOPY \SOURCE\*.* /S %1\GURU\SOURCE\
CLS
XCOPY \TD2192\*.* /S %1\GURU\TD2192\
CLS
XCOPY \WOLF3D\*.* /S %1\GURU\WOLF3D\
CLS
XCOPY \XARGON\*.* /S %1\GURU\XARGON\
CLS
XCOPY \ZONE66\*.* /S %1\GURU\ZONE66\
CLS
ECHO
ECHO
ECHO ─────────────────────────────────────────────────────────────────────────
ECHO The installation of the "Tricks of the Game-Programming Gurus"
ECHO software is complete!
ECHO ─────────────────────────────────────────────────────────────────────────
ECHO
ECHO ══════════════════════════════════════════════════════════════════════════
ECHO
ECHO You'll find the files in the %1\GURU directory of your hard drive,
ECHO with each application in its own subdirectory. Be sure to read the
ECHO book for more information on these programs.
ECHO
ECHO You'll now be returned to the install menu.
ECHO Press Esc to exit the menu and return to DOS.
ECHO
ECHO ══════════════════════════════════════════════════════════════════════════
ECHO
ECHO
PAUSE
GOTO FINISHED
REM ************************************************************************
:NO_DRIVE
CLS
ECHO
ECHO
ECHO ┌──────────────────────────────────────────┐
ECHO │ The drive you selected is not available. │
ECHO │ Please select an available drive. │
ECHO └──────────────────────────────────────────┘
ECHO
ECHO
PAUSE
GOTO FINISHED
REM ************************************************************************
:RUN_INSTALL
CLS
ECHO
ECHO
ECHO ┌────────────────────────────────────────────────────┐
ECHO │ You must run the INSTALL.BAT program to properly │
ECHO │ install the "Tricks of the Game-Programming Gurus" │
ECHO │ software. From the DOS prompt type INSTALL, press │
ECHO │ Enter, and the main installation menu will appear. │
ECHO └────────────────────────────────────────────────────┘
ECHO
ECHO
PAUSE
REM ************************************************************************
:FINISHED