PathLen ver. 1.6 by Horst Schaeffer

PathLen expects an absolute path as parameter (as supplied by drag&drop), and displays a message box with path information and length. If a folder path is supplied, PathLen searches for the longest path in the directory structure.  

+++ Usage:

Make a shortcut on the desktop, and drag&drop any path from the Windows Explorer onto the shortcut.

Or make a shortcut in your SendTo folder (%userprofile%\Sendto), so you can use Context Menu: SendTo/PathLen.

Or make a shortcut with a fixed path as parameter (in quote marks) in the target field, if you often have to check a particular path.

+++ Command options (may be used in shortcuts):

/i  icon - "i" bubble icon in message box
/m  mute - no sound (and no icon)
/n  no prompt to "open folder?", just an Ok button
/c  clipboard - send result to clipboard

You may also use verbal options like /icon, because only the first letter is relevant.

+++ Notes: 

The maximum path length that Windows can handle is 259 bytes. 
If the initial path (parameter) is longer than 259, Windows will fail to run PathLen,
however, the longest path that is found may be longer, and will be reported. 

Compiler bug: a drag&dropped path with a length of 258 or 259 bytes (not counting the quote marks) will probably be broken (internal buffer not large enough for 259 plus quote marks).

When PathLen searches for the longest path, and there are several paths with the same length, only the first instance is reported.

Windows 7 issue: the message box window width is limited for unknown reasons, which may result in wrapped lines. Watch the trailing backslash for each step of the path (except for the file name in last line).   

+++

This program is freeware (c) Horst Schaeffer. No warranty, no liability of any kind.

Contact:  horst.schaeffer@gmx.net
Homepage: http://www.horstmuc.de/win.htm

21 Jun 2012

+++
