> You know, a small piece of code could be written to simply read the
> partition table and check for FAT/FAT32 partitions instead of the
> whole %comspec% /f thing...

The answer to this is two-fold...

First, things are not that simple. You can get drives
from various sources, and it can be complex to have
exactly the same logics as the kernel. Second, it is
not that complex :-). You can ask the kernel to give
you the boot sector for a given drive letter. That
saves you the work of finding out which partition is
which drive letter. The problem with that is, that
for some UNKNOWN REASON (probably it was needed to
work around some old problem, does anybody remember?)
our kernel tends to provide "invented" but valid file-
system info for unformatted partitions. Which is why
the extra "try to create a file to see if the partition
really works" check is needed. Still you can get a
more elegant check by first running some boot sector
based tool like my OSCHECK before you actually go to
the "try to write" step. Again, no partition table
parsing is required for either of the checks :-).

Eric


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to