file/folder path limit

G

Guest

is there any limit to the folder hierarchy (ie file/folder path ) in windows
2000 advanced server and also the filename length limit in windows 200
advanced server
 
P

Pegasus \(MVP\)

sridhar said:
is there any limit to the folder hierarchy (ie file/folder path ) in windows
2000 advanced server and also the filename length limit in windows 200
advanced server

The combined path+file name length must not exeed 254 chars.
Put your information inside the file instead of the file name.
 
G

Guest

thanks a lot for that. it solved my problem. Is there a way i can restrict
the users from giving long filenames/foldernames in windows 2000 advanced
server ?
 
P

Pegasus \(MVP\)

I don't think you can prevent users from having excessively
long names. However, you can inform them that such names
cause system problems. The batch file below will compile a
list of names > 200 chars, to be used when enforcing your
policy.

Line1 @echo off
Line2 if exist c:\LongNames.txt del c:\LogNames.txt
Line3 dir /s /b d:\ > c:\dir.txt
Line4
Line5 for /F "tokens=*" %%* in (c:\dir.txt) do call :Sub %%*
Line6 goto :eof
Line7
Line8 :Sub
Line10 set Name=%*
Line11 if not "%Name:~200,1%"=="" echo %Name% >> c:\LongNames.txt
 
J

Joel Olson

Pegasus said:
The combined path+file name length must not exeed 254 chars.
Put your information inside the file instead of the file name.

Is there any way to increase it in any version of Windows?
A supplemental program?
 

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