Mail Archives: djgpp-workers/2000/03/01/09:33:05
On Wed, 1 Mar 2000, Hans-Bernhard Broeker wrote:
> The only halfway safe method of doing what you want is to do it from raw
> DOS, where no LFN driver is present in the OS. Then use the very
> old-fashioned FCB functions, or maybe even direct disc writes, to modify
> the directory entries by hand to modify the SFN, but make sure you don't
> damage the LFN, while doing that.
Alas, this won't work, either: Windows stores hidden info about the
file names (checksums etc.) as part of the LFN entry, and when it sees a
file whose name doesn't fit the checksum, it nukes the long file name.
So you are left with a short file name only.
Like usual with MS, it's as if they saw in advance every possible way of
working around their misfeature and carefully sealed off every single one
of them...
- Raw text -