Length of names?

G

geezer

In XP PRO (SP2) -

Is there a total character-length limit for a path? That is, for a
path such as

a/b/c/d/e/f, how many characters can there be total? There must be
one.

Thanks

Geezer
 
C

Carey Frisch [MVP]

The user-defined path is limited to a maximum length of 511 characters.
When a user-defined path is combined with a system path, the user-defined
path is limited to 1,023 characters minus the system path.

--
Carey Frisch
Microsoft MVP
Windows - Shell/User
Microsoft Community Newsgroups
news://msnews.microsoft.com/

---------------------------------------------------------------------------­----------------

:

| In XP PRO (SP2) -
|
| Is there a total character-length limit for a path? That is, for a
| path such as
|
| a/b/c/d/e/f, how many characters can there be total? There must be
| one.
|
| Thanks
|
| Geezer
 
C

Chas

geezer said:
In XP PRO (SP2) -

Is there a total character-length limit for a path? That is, for a
path such as

a/b/c/d/e/f, how many characters can there be total? There must be
one.

Thanks

Geezer
Hi
In XP the maximum length of a path is the 32767 char limit imposed by the
counted string structure.
I believe each component of the path may be limited to 255 characters,
though.

Chas
 
T

Tom Porterfield

geezer said:
In XP PRO (SP2) -

Is there a total character-length limit for a path? That is, for a
path such as

a/b/c/d/e/f, how many characters can there be total? There must be
one.

260 characters.
--
Tom Porterfield
MS-MVP Windows
http://support.teloep.org

Please post all follow-ups to the newsgroup only.
 
W

Winux P

: In XP PRO (SP2) -
:
: Is there a total character-length limit for a path? That is, for a
: path such as
:
: a/b/c/d/e/f, how many characters can there be total? There must be
: one.
:
: Thanks
:
: Geezer

Maximum file name length is 255 charatcters.
Maximum folder path length is a bit less than 32, 800. Including all
characters like the drive letter
C and the : and the \ and all other legitimate file name characters.

- Winux P
 
D

David Candy

The practable limit, if you want all programs to be able to open the file, is 260. Paths longer than 260 require special syntax which most programs don't know about.
 
D

David H. Lipman

From: "David Candy" <.>

| The practable limit, if you want all programs to be able to open the file, is 260. Paths
| longer than 260 require special syntax which most programs don't know about.
|

Or use the SUBST.EXE command to replace a path with a drive letter.
 

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