Maximum filename length in NTFS (Windows XP and Windows Vista)?

前端 未结 14 1796
再見小時候
再見小時候 2020-11-22 14:46

I\'m designing a database table which will hold filenames of uploaded files. What is the maximum length of a filename in NTFS as used by Windows XP or Vista?

14条回答
  •  自闭症患者
    2020-11-22 15:34

    Individual components of a filename (i.e. each subdirectory along the path, and the final filename) are limited to 255 characters, and the total path length is limited to approximately 32,000 characters.

    However, on Windows, you can't exceed MAX_PATH value (259 characters for files, 248 for folders). See http://msdn.microsoft.com/en-us/library/aa365247.aspx for full details.

提交回复
热议问题