Can someone help me with the syntax of this boot disk I'm trying to create?

Cougar

Golden Member
Feb 26, 2000
1,761
0
0
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?
 

LiLithTecH

Diamond Member
Jul 28, 2002
3,105
0
0
All you really need is to accomplish the same thing is:
(you do not need to load SMARTDRIVE High)


AUTOEXEC.BAT
a:\smartdrv.exe
MSCDEX.EXE /D:cdrom /L:R

CD R:\i386

winnt.exe


CONFIG.SYS
DEVICE=HIMEM.SYS /testmem: off
FILES=30
BUFFERS=20

DEVICE=cd1.SYS /D:cdrom
LASTDRIVE=Z
 

Cougar

Golden Member
Feb 26, 2000
1,761
0
0
LiLithTecH...

I eventually did figure it out, but I did have to specify the drive letter in the autoexec.bat file. Like I said earlier I just copied and pasted the code that was in my 98 startup disk and just changed the path where it was installing windows from so that's why there's all that extra code. Also, I'm not loading smartdrive high, the C+ is to enable write-cache on the C: drive and the /V is so that smartdrv will display it's status that way I know the autoexec.bat file is executing it.

I actually managed to burn my windows cd and make it bootable with the content on my new boot disk and windows starts installing all by itself now :)

My next task is to learn how to script it so that I don't even have to be at the computer when I want to install it:D