home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Format 20
/
Disk20-1.iso
/
PCF.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-03-22
|
3KB
|
156 lines
@echo off
:start
cls
if %1!==! goto errmess
if %2!==! goto errmess
if "%1" =="a" goto testcd
if "%1" =="A" goto testcd
if "%1" =="b" goto testcd
if "%1"=="B" goto testcd
goto errmess
:testcd
if "%2" =="C" goto loader
if "%2" =="c" goto loader
if "%2"=="D" goto loader
if "%2" =="d" goto loader
if "%2"=="E" goto loader
if "%2" =="e" goto loader
goto errmess
:loader
mainmenu
getkey cghvxe
if errorlevel 6 goto egaroids
if errorlevel 5 goto exit
if errorlevel 4 goto vpic
if errorlevel 3 goto hware
if errorlevel 2 goto gifs
if errorlevel 1 goto config
:vpic
cls
echo Please wait while the PC FORMAT Coverdisk copies
echo the relevant files to your "%2" drive.
md %2:\utils
md %2:\utils\vpic
copy %1:\vpict.zip %2:\utils\vpic
copy %1:\pkunzip.exe %2:\utils\vpic
%2:
cd\utils\vpic
pkunzip vpict.zip
del vpict.zip
del pkunzip.exe
%1:
echo.
echo Please refer to the Coverdisk pages for information on how
echo to run and use this most excellent utility.
pause
goto loader
:hware
cls
echo Please wait while the PC FORMAT Coverdisk copies
echo the relevant files to your "%2" drive.
md %2:\utils
md %2:\utils\hware
copy %1:\hware.zip %2:\utils\hware
copy %1:\pkunzip.exe %2:\utils\hware
%2:
cd\utils\hware
pkunzip hware.zip
del hware.zip
del pkunzip.exe
%1:
echo.
echo Please refer to the Coverdisk pages for information on how
echo to run and use this most excellent utility.
pause
goto loader
:gifs
cls
echo Please wait while the PC FORMAT Coverdisk copies
echo the relevant files to your "%2" drive.
md %2:\utils
md %2:\utils\gifs
copy %1:\gifs.zip %2:\utils\gifs
copy %1:\pkunzip.exe %2:\utils\gifs
%2:
cd\utils\gifs
pkunzip gifs.zip
del gifs.zip
del pkunzip.exe
%1:
echo.
echo Please refer to the Coverdisk pages for information on how
echo to use these GIFs.
pause
goto loader
:config
cls
echo Please wait while the PC FORMAT Coverdisk copies
echo the relevant files to your "%2" drive.
md %2:\utils
md %2:\utils\config
copy %1:\config.zip %2:\utils\config
copy %1:\pkunzip.exe %2:\utils\config
%2:
cd\utils\config
pkunzip config.zip
del config.zip
del pkunzip.exe
%1:
echo.
echo Please refer to the Coverdisk pages for information on how
echo to run and use this most excellent utility.
pause
goto loader
:egaroids
cls
echo Please wait while the PC FORMAT Coverdisk copies
echo the relevant files to your "%2" drive.
md %2:\games
md %2:\games\egaroids
copy %1:\egaroids.zip %2:\games\egaroids
copy %1:\pkunzip.exe %2:\games\egaroids
%2:
cd\games\egaroids
pkunzip egaroids.zip
del egaroids.zip
del pkunzip.exe
%1:
echo.
echo Please refer to the Coverdisk pages for information on how
echo to run and use this most excellent Asteroids clone.
pause
goto loader
:errmess
echo To start the PC FORMAT Coverdisk, please type the following:
@echo.
echo PCF X Y
@echo.
echo X is the letter of the floppy disk drive the Coverdisk is in
echo Y is the letter of your hard disk where the files will be copied to.
@echo.
echo For more information see page 7 of PC FORMAT.
@echo.
pause
goto quit
:exit
cls
goodbye
getkey x
if errorlevel 1 goto quit
:quit
cls
echo on