cls
@echo off
set | find "windir=" > c:\wintmp$$.$$$
copy c:\wintmp$$.$$$ c:\winbox$$.$$$ > nul
if exist c:\winbox$$.$$$ echo You are running Windows! You need to restart your computer in DOS mode.
if not exist c:\winbox$$.$$$ echo You are running DOS.
if exist c:\wintmp$$.$$$ del c:\wintmp$$.$$$
if exist c:\winbox$$.$$$ del c:\winbox$$.$$$
echo.
goto cd
:cd
echo.
mem /m MSCDEX | find "is using the following memory" > nul
if errorlevel==2 goto nofind
if errorlevel==1 goto nofind
echo Your CD-ROM driver appears to be loaded correctly.
echo.
goto mouse
:nofind
echo Your CD-ROM is not loaded for this DOS session.
echo In order to play this game you must have your CD-ROM drivers loaded.
echo For more info on how to load the driver please refer to your system 
echo manual or contact your system supplier.
echo.
goto mouse
:mouse
mem /m MOUSE | find "is using the following memory" > nul
if errorlevel==2 goto nom
if errorlevel==1 goto nom
echo.
goto end
:nom
echo.
echo You are missing a DOS mouse driver. You must install the driver to play
echo this game. To install a mouse driver in DOS follow the insructions in 
echo the README file on your CD-ROM.
echo.
goto end
:end
