PDA

View Full Version : Character Length of Path of File


Bob McCall
January 6th 04, 07:30 PM
Trying to find out what total character length of the
path of a file can be in Windows XP.

Can it be changed?

Thanks - Bob

Torgeir Bakken (MVP)
January 6th 04, 07:30 PM
Bob McCall wrote:

> Trying to find out what total character length of the
> path of a file can be in Windows XP.

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemIODirectoryInfoClassctorTopic.asp

"...
PathTooLongException
...
The specified path, file name, or both exceed the system-defined maximum
length. For example, on Windows-based platforms, paths must be less than
248 characters, and file names must be less than 260 characters.The
specified path, file name, or both are too long. Paths must be less than
248 characters, and file names must be less than 260 characters.
..."


> Can it be changed?

No.



--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter

Google