Eric Auer schreef:

In addition, OSCHECK searches the boot sector for typical kernel file names.
When such a string is found, OSCHECK looks for the corresponding file on disk.
Both on-screen messages and returned errorlevels give you detailled information
about which FORMAT/SYS tool was probably used and whether the disk seems to
be bootable and for which OS.


verrrrrrrrrry nice! however still not safe to SYS C: if a bootsector is analysed but contains a strange name.
Say, a KERNEL2.SYS.
difficult to add "read all filenames from root, and search if there's a reference to at least one of them in the bootsector" ?
that makes the difference between:
1) "unidentified bootsector, no related kernel file found, overwriting by FreeDOS bootsector"
2) "unidentified bootsector, related kernel file(s) found, not touching anything"


PS: I think using OSCHECK in a batch script might be more useful than
adding the functionality of OSCHECK to SYS - the command line syntax of
SYS is already complex enough (because it contains SYS, with some possible
parameter overrides and boot sector file writing etc., as well as SYS CONFIG
which is a tool to set config variables in a kernel binary).


still SYS should have some additional possibilities, like WARNING the user.
I remember my SYS C:..while C: contained Win2000 bootloader..bye bye Win2000 installation :(


OSCHECK tool is very verbose/specialised and very useful for batchfiles.
However, a subset of its functionality (like dumping bootsector, and user-protection) can optionally be integrated into SYS, just in a more generic way.
(the "existing non-freedos bootsector + corresponding kernel file(s) found, are you sure you want to overwrite bootsector by freedos bootsector? [Y/N]")


Bernd


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to