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?
Maximum filename length in NTFS (Windows XP and Windows Vista)
filenamesname-lengthntfswindows-vistawindows-xp
Related Topic
- Oracle – the maximum length of a table name in Oracle
- Bash – Extract filename and extension in Bash
- Windows – What directories do the different Application SpecialFolders point to in WindowsXP and Windows Vista
- Windows – the difference between NTFS Junction Points and Symbolic Links
- Bash – How to loop over files in directory and change path and add suffix to filename
- Windows NTFS and case sensitivity
Best Answer
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.