Johnson Lam schreef:
THE QUESTION is: I wish to add error level = 1 format terminated ok, but
floppy has bad sectors. Anyone has a comment about that?
You mean the new error level 1 is: format terminated successfully.
No. Format will in normal mode still behave the same as MS-FORMAT,
including above mentioned errorlevels.
Alain talks about batch mode, and /Z:SERIOUSLY (the "seriously" option
implements "ECHO Y | FORMAT C:" ).
I think, *if* /Z:SERIOUSLY is returned, then and only then, allow to
return errorlevel 1 as proposed by Alain.
MS-FORMAT, FreeDOS Format:
0 = ok, ok with bad-sectors, sintax errors or help msg.
3 = aborted by user
4 = fatal error, disk broken or wrong name
5 = harddisk format confirmation not given (user selected "no")
outputs = 0, 3 and 4 confirmed my myself.
FreeDOS Format with /Z:SERIOUSLY:
0 = ok, sintax errors or help msg.
1 = ok with bad-sectors
3 = aborted by user
4 = fatal error, disk broken or wrong name
5 = harddisk format confirmation not given (user selected "no")
outputs = 0, 3 and 4 confirmed my myself.
While at it, "0" should only be "OK".
Also implement errlvl 2 then: syntax error or help message.
By user or terminated itself because of bad sectors? In this case I
guess it's terminated by user since 0 is OK with bad sector, am I
correct?
no idea, and what errorlevel would CTRL-C generate?
Bernd
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel