Where is my too-long path?

G

Guest

I'm still having trouble with this -I know a long path length is a problem, but where is it - how do I find it
Many thank
Seb


Subject: Re: Pathlength 1/5/2004 5:07 PM PST

By: (e-mail address removed) (search by author) In: microsoft.public.windowsxp.security_admin

What I want to find out is which paths are too long? I
have multiple folders in multiple folders with 100s of
files - and somewhere there are problems. Can I scan for
the problem places so I can rename
 
R

Roger Abell [MVP]

Wow Sebb, no one has answered you on this yet ??

You could use a recursive script, tracking the length.
I would use the "find" command from the SFU (Services for Unix tools).

On your comment on NT maximum path length check out this from a KB
<quote>
Many Windows programs expect the maximum path length to be shorter
than 255 characters; therefore, these programs only allocate enough internal
storage to accommodate these typical paths. NTFS does not have this limit
and it is capable of accommodating much longer paths.
</quote>

Have you simply tried using
dir /s /w
(/w optional) at the root of the suspect structure and see it if errors out
when dir length reaches max size ? If that works, then your issue is
somewhere about there since path is dir+filename
Whether this helps you will need to experiment, but just now trying
I find it ends prematurely when dir part of path is too long on a small
test structure just built.

Roger

Sebb said:
I'm still having trouble with this -I know a long path length is a
problem, but where is it - how do I find it?
 

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