#1 2012-05-04 02:28

DonB
Member
Registered: 2012-05-04
Posts: 1

Display "New Path Length"

Request: Add "Path Length" and "New Path Length" columns to main list box.

ReNamer can display the columns "Name Length" and "New Name Length". These columns display the number of characters in the filename (excluding the directory portion of the path).

It would be nice if ReNamer could also show the number of characters in the entire path. This would count "C:\" as 0 characters, would count ".html" as 5 characters, and would count every "\" as one character. "Path Length" and "New Path Length" are important, because when the name gets too long (say, over 256 characters), Windows Explorer can't handle the file, and programs can't open the file. (In the few cases that I checked this could be corrected by giving the file a shorter name).

(I haven't checked if ReNamer has a "safety feature" that prevent file names from getting too long, but if it doesn't, I'd like to suggest this as a new feature).

-------------------------
BACKGROUND:

Here are some ideas about very long path lengths. They are based on some tests I did in December 2010 on my latop ( Windows 7, 64-bit laptop, all patches applied, NTFS file system ). I tried making the filenames as long as I could using Windows Explorer, and using XYplorer ( http://www.xyplorer.com ).

(Sorry, I haven't tested how ReNamer handles long file names).

-------------------------
This Microsoft web page discusses long file names (search for the heading "Maximum Path Length Limitation"):
http://msdn.microsoft.com/en-us/library … S.85).aspx

This web page says: 'For example, the maximum path on drive D is "D:\some 256-character path string<NUL>"'

There could be a unicode vs. non-unicode issue here. The web page says:
"The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of 32,767 characters."

-------------------------
The longest filename I could create with Windows Explorer was:
E:\5Junk\DEFGHIJ\0bcdefghi_010abcdef_020abcdef_030abcdef_040abcdef_050abcdef_060abcdef_070abcdef_080abcdef_090abcdef_100abcdef_110abcdef_120abcdef_130abcdef_140abcdef_150abcdef_160abcdef_170abcdef_180abcdef_190abcdef_200abcdef_210abcdef_220abcdef_230abcde.png

In this filename, which I created using Windows Explorer, "5" was counted as the first character, and the last "g" was the 256th character. This filename was exactly the length I would expect, based on the the "formula": "D:\some 256-character path string<NUL>"

-------------------------
The longest filename I could create with XYplorer v9.80 was:
E:\5Junk\DEFGHIJ\0bcdefghi_010abcdef_020abcdef_030abcdef_040abcdef_050abcdef_060abcdef_070abcdef_080abcdef_090abcdef_100abcdef_110abcdef_120abcdef_130abcdef_140abcdef_150abcdef_160abcdef_170abcdef_180abcdef_190abcdef_200abcdef_210abcdef_220abcdef_230abcdeABCDEFGHIJKL.JUNK

Windows Explorer couldn't handle files with names this long.

XYplorer v9.80 created, and could handle file names 13 characters longer than the longest name Windows Explorer could handle. (If you want to experiment with very long filenames, this could help).
-------------------------

Offline

#2 2013-01-23 06:05

Bobbo Jones
Member
Registered: 2013-01-23
Posts: 5

Re: Display "New Path Length"

I just downloaded this program hoping it could help me to shorten file names for this very error. i am transferring files and occasionally the file name gets too long, and the file simply doesn't arrive. No idea if there are warnings for it as I usually leave it run overnight. Haven't seen a warning in the morning once, just a handful of missing files.

Offline

Board footer

Powered by FluxBB