Win XP Explorer - is their a view that shows file name lenghts?

A

All Things Mopar

I have Win XP SP1. I am wondering if there is a View in
Windows Explorer that shows the lenght of file names in a
folder.

I need to know this to avoid getting my file names truncated
when creating a CD-R in Joliet (64 characters max) or UDF
(120
characters max).

I usually use Details as my Exlorer view. I thought of
creating a dummy file which is the exact maximum allowable
lenght (64 or 120 chars) but Explorer uses a proportional
spaced font, so the apparent lenght as viewed in Details is
not an accurate indicator of the true file name lenght, since
the "as viewed" size depends on the particular use of upper &
lower case letters, numbers, and spaces.

The only reliable way I've found is to press F2 to put the
file name into "edit" mode, copy the name to the clipboard,
then paste it into Notepad, which I have set up with a long
string of numbers to represent file name lengthgs. This
methods works, because Notepad used a fixed width font.

It would be *really* handy to find an *easy* way in Explorer
to determine if my file names are short enough to write to a
CD-R without being truncated.

If there is a shareware untility someone knows about that'll
do what I want, I'd sure like to know about it.

If any of this isn't clear, please ask questions and I will
try to clarify.

Thanks in advance.

-- Jerry
 
A

All Things Mopar

GTS commented courteously ...
No way to do this in Windows Explorer, but you can download
a good free utility called Long Filename Finder from
http://www.dcsoft.com/products.htm

Fantastic untility! And, the price is right! Thank you! Thank
you! Thank you!

Just curious, how ever did you run across this proggie?

-- Jerry
 
D

David Candy

Set Ag=Wscript.Arguments
If Len(Ag(0)) >64 then msgbox Ag(0) & " is " & Len(Ag(0)) & " characters long."& vbcrlf & "It is longer than 64 characters"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength\Command]
@="wscript \"C:\\Documents and Settings\\David Candy\\Desktop\\CheckPathLength.vbs\" \"%L\""
 
A

All Things Mopar

David Candy commented courteously ...
Set Ag=Wscript.Arguments
If Len(Ag(0)) >64 then msgbox Ag(0) & " is " & Len(Ag(0)) &
" characters long."& vbcrlf & "It is longer than 64
characters"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength\Command]
@="wscript \"C:\\Documents and Settings\\David
Candy\\Desktop\\CheckPathLength.vbs\" \"%L\""

David,, thanks for the help. This looks very neat, but what
does it do?

It appears to flag (somehow) all files longer than set in the
"if Len" statement. but, I can't at all fathom how to
implement this.

Meanwhile, I got a reply from another NG reader pointing me to
a utility which flags all file names greater than specified. I
just downloaded it - it is fantastic!

-- Jerry
 
D

David Candy

It's a two line vbs file and a registry file that puts it on the right click menu.

So create a text file called something.vbs (I called it CheckPathLength), put the first two lines in it. Save it somewhere.

Create the second file called AnythingAtAll.reg. Change the path name from C:\\Documents and Settings\\David Candy\\Desktop\\CheckPathLength.vbs to wherever you saved the first file to (note double \\ for single \).

Right click any files or group of files and choose Check Path Length.

Duplicate for other lengths or just live with warnings over 64 (as I would if I cared).

Delete the
If Len(Ag(0)) >64 then
part to see all lengths.
--
----------------------------------------------------------
http://www.uscricket.com
All Things Mopar said:
David Candy commented courteously ...
Set Ag=Wscript.Arguments
If Len(Ag(0)) >64 then msgbox Ag(0) & " is " & Len(Ag(0)) &
" characters long."& vbcrlf & "It is longer than 64
characters"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength\Command]
@="wscript \"C:\\Documents and Settings\\David
Candy\\Desktop\\CheckPathLength.vbs\" \"%L\""

David,, thanks for the help. This looks very neat, but what
does it do?

It appears to flag (somehow) all files longer than set in the
"if Len" statement. but, I can't at all fathom how to
implement this.

Meanwhile, I got a reply from another NG reader pointing me to
a utility which flags all file names greater than specified. I
just downloaded it - it is fantastic!

-- Jerry
 
D

David Candy

Doesn't check folders as I thought it a bit pointless. But ...

Change the registry key from
*
to
AllFileSystemObjects
to do folders and files.

--
----------------------------------------------------------
http://www.uscricket.com
All Things Mopar said:
David Candy commented courteously ...
Set Ag=Wscript.Arguments
If Len(Ag(0)) >64 then msgbox Ag(0) & " is " & Len(Ag(0)) &
" characters long."& vbcrlf & "It is longer than 64
characters"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength\Command]
@="wscript \"C:\\Documents and Settings\\David
Candy\\Desktop\\CheckPathLength.vbs\" \"%L\""

David,, thanks for the help. This looks very neat, but what
does it do?

It appears to flag (somehow) all files longer than set in the
"if Len" statement. but, I can't at all fathom how to
implement this.

Meanwhile, I got a reply from another NG reader pointing me to
a utility which flags all file names greater than specified. I
just downloaded it - it is fantastic!

-- Jerry
 
D

David Candy

You have to dbl click the reg file once to add the vbs file to the menu. Then you can throw the reg file away.

--
----------------------------------------------------------
http://www.uscricket.com
It's a two line vbs file and a registry file that puts it on the right click menu.

So create a text file called something.vbs (I called it CheckPathLength), put the first two lines in it. Save it somewhere.

Create the second file called AnythingAtAll.reg. Change the path name from C:\\Documents and Settings\\David Candy\\Desktop\\CheckPathLength.vbs to wherever you saved the first file to (note double \\ for single \).

Right click any files or group of files and choose Check Path Length.

Duplicate for other lengths or just live with warnings over 64 (as I would if I cared).

Delete the
If Len(Ag(0)) >64 then
part to see all lengths.
--
----------------------------------------------------------
http://www.uscricket.com
All Things Mopar said:
David Candy commented courteously ...
Set Ag=Wscript.Arguments
If Len(Ag(0)) >64 then msgbox Ag(0) & " is " & Len(Ag(0)) &
" characters long."& vbcrlf & "It is longer than 64
characters"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength]

[HKEY_CLASSES_ROOT\*\Shell\CheckPathLength\Command]
@="wscript \"C:\\Documents and Settings\\David
Candy\\Desktop\\CheckPathLength.vbs\" \"%L\""

David,, thanks for the help. This looks very neat, but what
does it do?

It appears to flag (somehow) all files longer than set in the
"if Len" statement. but, I can't at all fathom how to
implement this.

Meanwhile, I got a reply from another NG reader pointing me to
a utility which flags all file names greater than specified. I
just downloaded it - it is fantastic!

-- Jerry
 
A

All Things Mopar

David Candy commented courteously ...
It's a two line vbs file and a registry file that puts it
on the right click menu.

So create a text file called something.vbs (I called it
CheckPathLength), put the first two lines in it. Save it
somewhere.

Create the second file called AnythingAtAll.reg. Change the
path name from C:\\Documents and Settings\\David
Candy\\Desktop\\CheckPathLength.vbs to wherever you saved
the first file to (note double \\ for single \).

Right click any files or group of files and choose Check
Path Length.

Duplicate for other lengths or just live with warnings over
64 (as I would if I cared).

Delete the
If Len(Ag(0)) >64 then
part to see all lengths.

Thanks, David. I appreciate it.

-- Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top