Windows XP "MS-DOS Startup Disk"

Status
Not open for further replies.

WhoAmI

Beta member
Messages
1
I'm trying to make a universal network boot disk which is based off of the XP MS-DOS Startup disk (see http://www.netbootdisk.com/). The problem is that the ERRORLEVEL variable is never set when using this bootdisk (which I need for testing in a batch file).

Example:
- Open up command.com (or cmd.com) in XP.
- type in "dir"
- type in "echo %errorlevel%"

This should output the number 0 (saying that the dir command had no error's of course).

Now do the same thing using the boot disk created with XP (right click floppy drive, select Format, select "Create and MS-DOS startup disk.").

All this outputs is "ECHO is on" - the same thing if you just typed in "echo."

Does anyone have any ideas? Thanks!
 
more likly than not, the dos based command line interputer doen't support %errorlevel% as the environment was never defined. Try creating the error level your self and see if that makes a difference for you.
if all else fails, find a better way to do it...
 
Status
Not open for further replies.
Back
Top Bottom