Invalid characters in a filename on Windows?
As per the MSDN , the following characters cannot be part of the file name: 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) In .net an api is provided to find the what are the characters not allowed in a filename char[] invalidFileChars = Path.GetInvalidFileNameChars(); Remarks The array returned