home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
norge.freeshell.org (192.94.73.8)
/
192.94.73.8.tar
/
192.94.73.8
/
pub
/
computers
/
pcjr
/
graphics
/
FOOTBAL2.LZH
/
SETUP2.BAT
< prev
Wrap
DOS Batch File
|
1990-09-22
|
1KB
|
42 lines
echo off
if not "%1"=="" goto SETUP
echo Command: Result:
echo {source} {system}
echo Setup2 {drive:} {drive:} {\s} {r:} Load files from source drive
echo to system drive subdirectory
echo where r: is RAM disk.
goto END
:SETUP
if not "%1"=="" if not "%2"=="" if not "%3"=="" if not "%4"=="" goto OK
echo You must specify 4 SETUP2 parameters.
goto END
:OK
if exist %2FE.bak echo ** ERROR ** %2FE.BAK already exists. Erase %2FE.BAK first.
if exist %2FE.bak goto END
echo Source drive is %1
echo System drive is %2
echo System subdirectory is %3
echo RAM disk is %4
copy %2FE.bat %2FE.bak
dir %2%3
pause
if exist FE.mod erase FE.mod
if exist %2%3\football.mod erase %2%3\football.mod
cls
echo %4 >> %2%3\football.mod
echo IF EXIST %4FOOTBALL.TMP ERASE %4FOOTBALL.TMP >> EF.mod
echo %2 >> FE.mod
echo CHDIR %3 >> FE.mod
echo IF EXIST %4%3\FOOTBALL.TMP ERASE %4%3\FOOTBALL.TMP >> FE.mod
copy %1FE1.bat+FE.mod+%1FE2.bat %2FE.bat
erase FE.mod
echo Your current %2FE.BAT is listed below:
echo ----------------------------------------------------
type %2FE.bat
echo ----------------------------------------------------
echo DONE!
echo ----------------------------------------------------
%2
FE
:END