Skip to content

Instantly share code, notes, and snippets.

@ZyqGitHub1
Forked from doctaphred/ntfs-filenames.txt
Created March 24, 2020 04:51
Show Gist options
  • Save ZyqGitHub1/db8db02f6814838a1813f05b90f59701 to your computer and use it in GitHub Desktop.
Save ZyqGitHub1/db8db02f6814838a1813f05b90f59701 to your computer and use it in GitHub Desktop.
Invalid characters for Windows filenames
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
Use any character in the current code page for a name, including Unicode
characters and characters in the extended character set (128–255), except
for the following:
- The following reserved characters:
< (less than)
> (greater than)
: (colon)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
* (asterisk)
- Integer value zero, sometimes referred to as the ASCII NUL character.
- Characters whose integer representations are in the range from 1 through
31, except for alternate data streams where these characters are
allowed. For more information about file streams, see File Streams.
- Any other character that the target file system does not allow.
<>:"/\|?*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment