Believe it or not, file name limits aren't all that easy to come by. The reason it's difficult is because you have limits imposed by NTFS itself, limits imposed by the Windows operating system, and limits imposed by the application dealing with the files (e.g., Windows Explorer or File Explorer).
Experimentation reveals that for a file created at "C:\", you can create a file name with at most 255 characters. If you were to try to create a file with a longer path (e.g., "C:\Documents"), the length of the file name would have to be reduced accordingly. This implies that in addition to the length of the actual file name, you also have to deal with the name of the path, which, according to Microsoft, is set at 260 characters for local files.
File names can use any character in the current code page, including Unicode characters and characters in the extended character set (128–255), except for the following:
This tip (5835) applies to Windows 7, 8, and 10.
The DiskPart utility is a low-level command-line program that lets you manage disks, virtual disks, partitions, and ...
Discover MoreWindows determines a program to use with a particular file based on the file's type. If you want to temporarily override ...
Discover MoreRobocopy is a robust file copy utility built into Windows. If you have a lot of file management to do that can't easily ...
Discover MoreFREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2021 Sharon Parq Associates, Inc.
Comments