Thread: file/folder path limit
-
12-26-05 12:50 AM #1DoctorGordanBensGuest
file/folder path limit
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
-
12-26-05 12:50 AM #2DoctorGordanBensGuest
Re: file/folder path limit
"sridhar" <sridhar@discussions.microsoft.com> wrote in message
news:387AB973-F4DE-4E7F-AB0A-51C3062985A9@microsoft.com...
> 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.
-
12-26-05 12:50 AM #3DoctorGordanBensGuest
Re: file/folder path limit
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 ?
"Pegasus (MVP)" wrote:
>
> "sridhar" <sridhar@discussions.microsoft.com> wrote in message
> news:387AB973-F4DE-4E7F-AB0A-51C3062985A9@microsoft.com...
> > 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.
>
>
>
-
12-26-05 03:16 AM #4DoctorGordanBensGuest
Re: file/folder path limit
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
"sridhar" <sridhar@discussions.microsoft.com> wrote in message
news:C9B6C51F-07F0-4887-8BBB-5E1339C8D933@microsoft.com...
> 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 ?
>
>
> "Pegasus (MVP)" wrote:
>
> >
> > "sridhar" <sridhar@discussions.microsoft.com> wrote in message
> > news:387AB973-F4DE-4E7F-AB0A-51C3062985A9@microsoft.com...
> > > 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.
> >
> >
> >
-
12-26-05 05:04 AM #5DoctorGordanBensGuest
Re: file/folder path limit
Pegasus (MVP) wrote:
> "sridhar" <sridhar@discussions.microsoft.com> wrote in message
> news:387AB973-F4DE-4E7F-AB0A-51C3062985A9@microsoft.com...
>
>>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.
>
Is there any way to increase it in any version of Windows?
A supplemental program?
Similar Threads
-
Lost path in Command Interpreter
By DoctorGordanBens in forum Windows Vista & XP ForumReplies: 4Last Post: 12-13-05, 08:20 AM -
Length limitation of Path Environment Variable?
By DoctorGordanBens in forum Windows 2000 / NTReplies: 2Last Post: 09-30-05, 03:29 PM -
formatting a path
By DoctorGordanBens in forum Windows Vista & XP ForumReplies: 1Last Post: 09-22-05, 12:08 PM


LinkBack URL
About LinkBacks
Reply With Quote