And here is the corresponding autoexec.bat:
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
cls
set temp=c:\
set tmp=c:\
path=a:\
IF "%config%"=="PART" GOTO PARTITION
IF "%config%"=="SMAGIC" GOTO SMAGIC
IF "%config%"=="NTFSDOS" GOTO NTFSDOS
IF "%config%"=="PQSI" GOTO PQSI
IF "%config%"=="IMAGE" GOTO IMAGE
IF "%config%"=="IMAGE0" GOTO IMAGE0
IF "%config%"=="NGHOST" GOTO NGHOST
IF "%config%"=="NAV" GOTO NAV
IF "%config%"=="QUICK" GOTO QUICK
path=c:\windows;c:\windows\command
: \hibinv.exe
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows Millennium Edition Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
::If MSCDEX doesn't find a drive...
IF ERRORLEVEL 1 SET CDPROB=1
::
GOTO QUIT
:AUTOSETUP
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:\;
LH MSCDEX.EXE /D:mscd001 /L
::If MSCDEX doesn't find a drive...
::IF ERRORLEVEL 1 SET CDPROB=1
::set CDROM=FOO23
FINDCD.EXE
::if "%CDROM%"=="FOO23" goto NOCDROM
path=%RAMD%:\;a:\;%CDROM%:;
%CDROM%:
cd \win9x
echo.
SETUP.EXE
::
GOTO QUIT
ARTITION
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:;
LH MSCDEX.EXE /D:mscd001
FINDCD.EXE
path=%RAMD%:\;a:\;%CDROM%:\;
%CDROM%:
cd \programs\pqpm
PQMAGIC.EXE
::
GOTO QUIT
:SMAGIC
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:;
LH MSCDEX.EXE /D:mscd001
FINDCD.EXE
path=%RAMD%:\;a:\;%CDROM%:\;
%CDROM%:
cd \programs\pqsm
SMAGIC.EXE
::
GOTO QUIT
:NTFSDOS
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:;
LH MSCDEX.EXE /D:mscd001
FINDCD.EXE
path=%RAMD%:\;a:\;%CDROM%:\;
%CDROM%:
cd \programs\NTFSDOS
ntfspro.exe
::
GOTO QUIT
QSI
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:;
LH MSCDEX.EXE /D:mscd001
FINDCD.EXE
path=%RAMD%:\;a:\;%CDROM%:\;
%CDROM%:
cd \programs\pqsi
PQSINT.EXE
::
GOTO QUIT
:IMAGE
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:\;
LH MSCDEX.EXE /D:mscd001
FINDCD.EXE
path=%RAMD%:\;a:\;%CDROM%:\;
%CDROM%:
cd \programs\pqdi
pqpacket.exe
pqdi.exe
::
GOTO QUICK
:IMAGE0
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:\;
LH MSCDEX.EXE /D:mscd001
FINDCD.EXE
path=%RAMD%:\;a:\;%CDROM%:\;
%CDROM%:
cd \programs\pqdi
pqdi.exe
::
GOTO QUICK
:NGHOST
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:\;
LH MSCDEX.EXE /D:mscd001
FINDCD.EXE
path=%RAMD%:\;a:\;%CDROM%\:;
%CDROM%:
CD \programs\GHOST
mouse.com
echo Loading...
GHOSTPE.EXE
::
GOTO QUIT
:NAV
: call \checksr.bat
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
md %RAMD%:\temp
set TEMP=%RAMD%:\temp
path=%RAMD%:\;a:\;%path%;%CDROM%:\;
LH MSCDEX.EXE /D:mscd001
FINDCD.EXE
path=%RAMD%:\;a:\;%CDROM%;
%CDROM%:
CD \programs\nav
::copy *.* %RAMD%:
::%RAMD%:
vscand /ALL /AUTOCLEAN /LOCAL
::
GOTO QUIT
:HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
::If MSCDEX doesn't find a drive...
IF ERRORLEVEL 1 SET CDPROB=1
cls
call a:\help.bat
::
GOTO QUIT
:NOCDROM
echo.
echo Problem reading the Setup files!
echo.
::
GOTO QUICK
:QUIT
call fixit.bat
rem clean up environment variables
set CDPROB=
:set CDROM=
set LglDrv=
GOTO QUICK
:QUICK