home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Access: To the Information Highway
/
InternetAccessToTheInformationHighway1994.disc1of1.iso
/
go.bat
< prev
next >
Wrap
DOS Batch File
|
1994-06-08
|
3KB
|
152 lines
@echo off
cd \
if not exist .\cdidx\cs\pic\emerald2.pcx goto fail
goto end0
:fail
cls
echo.
echo.
echo Sorry, you are on the wrong drive. Move to CD-ROM drive before executing.
echo.
pause
echo.
goto end
:end0
@echo off
set derml=
set envtest1=
set envtest2=
set cdr=
set cdidx=
set CDT=
set cdidxtmp=
set bd=
set goinst=
echo Checking to see if you are on the correct drive...
if not exist .\cdidx\cdidx.exe goto oops
echo Checking your available environment space...
set envtest1=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
set envtest2=xxxxxxxxxxxxxxx
if %envtest2% == xxxxxxxxxxxxxxx goto envok
set envtest1=
set envtest2=
goto envnok
:envok
set envtest1=
set envtest2=
echo Environment space adequate.
goto envcont
:envnok
cls
echo.
echo.
echo.
echo !!!!!! WARNING !!!!!!
echo.
echo You do not have enough environment space to install the CdIdx variables.
echo Please consult your DOS manual about expanding it. You need at least
echo 70 bytes of free environment space to complete the initialization
echo processes.
echo.
set cont=n
pause
cls
goto end
:envcont
echo @echo off >c:\tmp.bat
echo Determining which drive is your CD-ROM drive...
cd >c:\tmp1.dat
\cdidx\cstring -f1 -d: <c:\tmp1.dat >c:\tmp2.dat
\cdidx\strdt s/^/"set CDR=" <c:\tmp2.dat >>c:\tmp.bat
echo Determining your boot drive...
set >c:\tmp1.dat
\cdidx\fstring "COMSPEC=" <c:\tmp1.dat >c:\tmp2.dat
\cdidx\cstring -c9-9 <c:\tmp2.dat >c:\tmp3.dat
\cdidx\strdt s/^/"set BD=" <c:\tmp3.dat >>c:\tmp.bat
echo Setting Environment Variables (Running generated C:\TMP.BAT)...
call c:\tmp.bat
echo Cleanup: Erasing C:\tmp1.dat, C:\tmp2.dat, C:\tmp3.dat...
erase C:\tmp1.dat
erase C:\tmp2.dat
erase C:\tmp3.dat
echo Attemping to create %bd%:\cdidxtmp directory...
md %bd%:\cdidxtmp >\nul
set CDT=\cdidxtmp
set cdidx=%bd%%cdr%1%CDT%
echo Setup finished.
echo.
echo Boot drive was found to be drive: %bd%:
echo CD-ROM drive was found to be drive: %cdr%:
echo.
echo If this is INCORRECT, you may need to run INSTALL to specify them.
echo.
echo CdIdx is next.
pause
if no == %cdidxg% goto nograph
if exist .\cdidx\cs\pic\emerald2.pcx \cdidx\cs\cshow \cdidx\cs\pic\emerald2.pcx+x>c:\nul
\cdidx\sleep 5
goto donegraph
:nograph
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo E M E R A L D S O F T W A R E P R E S E N T S :
echo.
echo.
echo.
echo Internet Access to the Information Highway.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
pause
goto donegraph
:donegraph
cd \cdidx
cdidx
cd \
cls
goto end
:oops
cls
echo.
echo.
echo.
echo !!!!! WARNING !!!!!
echo.
echo You must make the drive you run GO.BAT from your default drive.
goto end
:end
echo.
REM Mike: Set the env var "cdidxg" to "no" and it shuts off the logo screen.
REM So, "set cdidxg=no" turns off the logo. "set cdidxg=" turns on the logo.