Monday, June 01, 2009

Long file name

Have been busy setting up my new TP today, and copying stuffs over.

Found that somehow file counts & sizes dont always match.

After some extensive comparison, it just came to my attention that names of some files with long file names are truncated (renamed to 8.3 format). 

Just did a search and found:

http://windowshelp.microsoft.com/Windows/en-US/Help/5bc67cea-5901-4563-b800-16af596dffb61033.mspx#EIC

What is the maximum length of a file name?

Windows usually limits file names to 260 characters. But the file name must actually be shorter than that, since the complete path (such as C:\Program Files\filename.txt) is included in this character count. This is why you might occasionally encounter an error when copying a file with a very long file name to a location that has a longer path than its current location.

Having said that, I still kind of don't understand as the source and target path names are the same.  Therefore, if the source file name is truncated, the destination file name should have behaved the same. 

And I don't know how the file name topic relates to the size issue...

No comments: