I'm trying to make a boot disk that will launch windows 2000 setup automatically without me having to punch it in (my CD is not bootable so I have to use a disk). I took a win98 boot disk and just modified the code a little bit so that instead of trying to launch oemsetup.exe from the win98 directory it should now launch winnt from the i386 directory but it always fails (I also set it to load smartdrv so that it doesn't take 8 years to copy the setup files to the hard drive). Here's what the autoexec.bat file looks like:
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
cls
set temp=c:\
set tmp=c:\
path=a:\
IF "%config%"=="NOCD" GOTO QUIT
LH MSCDEX.EXE /D: oemcd001 /L: D
SMARTDRV.EXE C+ /V
echo.
IF "%config%"=="SETUP_CD" goto AUTOSETUP
GOTO QUIT
:AUTOSETUP
path=a:\;%CDROM%\
%CDROM%
cd \I386
echo.
WINNT.EXE
:NOCDROM
echo.
echo The Windows 2000 Setup files were not found.
echo.
: QUIT
SMARTDRV.EXE C+ /V
Without fail, every thing I try will give me the same error message: "Invalid directory" followed by "Bad command or file name". So to me it seems like it doesn't change the directory to i386 like it's supposed to and then it just craps out when it can't find the winnt.exe file on the root. I probably could hard code it to go to the D:\i386 directory, but that wouldn't do me any good if the CD drive isn't D:.
So can anyone figure out what's wrong with my disk?
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
cls
set temp=c:\
set tmp=c:\
path=a:\
IF "%config%"=="NOCD" GOTO QUIT
LH MSCDEX.EXE /D: oemcd001 /L: D
SMARTDRV.EXE C+ /V
echo.
IF "%config%"=="SETUP_CD" goto AUTOSETUP
GOTO QUIT
:AUTOSETUP
path=a:\;%CDROM%\
%CDROM%
cd \I386
echo.
WINNT.EXE
:NOCDROM
echo.
echo The Windows 2000 Setup files were not found.
echo.
: QUIT
SMARTDRV.EXE C+ /V
Without fail, every thing I try will give me the same error message: "Invalid directory" followed by "Bad command or file name". So to me it seems like it doesn't change the directory to i386 like it's supposed to and then it just craps out when it can't find the winnt.exe file on the root. I probably could hard code it to go to the D:\i386 directory, but that wouldn't do me any good if the CD drive isn't D:.
So can anyone figure out what's wrong with my disk?