Bjorn Simonsen said:
I have tested it with IE 6.0 now too. Had to install it on my test
setup first. IE 6.0 truncates also. This is good news. Since I don't
use IE very often my self, I have not payed much attention to the
updates for it - what they fixed etc. Even if the very-LFN problem is
still there (some "loop holes" left), now that IE seems to be fixed
I'd say it's no longer committing filename length felonies -- but that it
is an standing offender at the serious misdemeanor level. Saving web pages
with titles some 200+ chars in length, and the tiny little .url files with
127 spammy chars? GROSS. It's not just the practical problem of user later
moving those to a deeply nested directory. It's the outrageousness of their
length, and the ugliness.
I ran your SED batch on my archive disk. I didn't find anything illegal.
So then I changed the length seek number, to 200, to get a list of stuff
still overlong. In earlier times, I had already cleaned up my MSIE stuff
for the most part, by pointing my renamer utility at certain directories,
specifying extensions, and telling it truncate length to do. But there's
no way I'd try to point a renamer at that entire disk (70g data), and
expect my computer to not pass out. So the commandline SED was ideal for
this, rock-sturdy and fast. Your batch has now given me a good cleanup
filelist.
Is MSIE the only browser who does this, uses the abused title tag for the
file's save name? The Mozilla line, I think it uses the filename title.(?)
Even MyIE2, it offers an extra choice for save, letting you bypass the
intrinsic Browser Control's save-as dialog. But I think only for html,
no pics, and no source URL written in. I don't mind use of title instead
of filename per se, as it means having to spend less time oneself in having
to come up with a names to use for all those pages called index.htm. However,
what MSFT needs to do, it's to preset max length (in fav commands too) down
to something nearer the perimeter of civility.
those very long filename will probably not be very common or frequent
(unless some hacker/virus etc exploits it).
One of the first times I'd paid attention to someone reporting the problem
(it was on the pcmag message board), and they got it as a Kazaa lite user.
It is a very long file name that was apparently a download from some
peer sharing program because the folder this email automatically
installed on my computer was Kazaa lite/ sub folder My shared files.
[...] but when I get the error in explorer it says cannot find
Pokemo~2.bmp.
A responder at the time noted that a web search turned up a great number
of hits for others having problems with that particular file. I got the
impression that malice was not involved. Just some bad initial naming,
then the file sharing program wrote illegal length to everyone's disk.
I don't know any technical details, not used or paid attention to file
sharing programs, and cannot speculate why Windows allows illegal file
lengths to get written in that situation.
Btw: One such "loop hole" allowed me to try "The Rename" on 264 characters
long file name when Explorer could not delete it, but no go - see my reply
to Terry Russell about that.
I'm believe none of the renamers can deal with the excess lengths, and that
it's a task strictly for the commandline. And once there, having to use the
more serious tricks. Btw, I noticed a syntax new to me. For dealing with a
not unrelated subject, reserved names:
RD \\.\<driveletter>:\<path>\<directory name>
http://support.microsoft.com/default.aspx?scid=kb;en-us;315226&Product=winxp
http://support.microsoft.com/default.aspx?scid=kb;EN-US;120716
[...]
Still can move a very long file into an existing directory though,
to create a inaccessible LFN. And Explore still can not delete a such
a file.
I have some fairly deeply nested paths (but not outside the OS/FS limits)
and need them that way. So my primary safety measure is to keep my file
names within reasonable length. The excess ones that I have gotten were
almost all MSIE's doing.
The only routine time I "type an essay" for a filename, it's with
screenshots. I am usually in the middle of something else when I take
them, and don't want to distract my attentions by going through any extra
dialogs for annotations. But I can clean up these names at later stage
easily enough (all the same extension, and there are not that many).
[...]
I have seen your other message about it. Good that you found the
single quote character was causing it and the standard double quote
fixed it.
The batch works very nicely. And thanks for the pointer to SED. I see
that it's one of those venerable old warriors. I've downloaded the docs,
and might here and there rtfm a line or two. It's good to have on board
those tools that are strong and capable for text processing.