Software Components Home

\ / : * ? " < > | Characters not allowed in Windows Filenames

Back

Question:
I'm using the Chilkat email components to process e-mail messages, and am having trouble saving the messages to a file. The LastErrorText returns the following:
ChilkatLog:
  SaveEml:
    Failed to open file (2)
    filename: C:\Software\abc\MailProcessor\bin\Debug\NUM signed, encrypted-20 12 2006 10:46:49.eml
    osErrorInfo: The parameter is incorrect.
    filename: C:\Software\abc\MailProcessor\bin\Debug\NUM signed, encrypted-20 12 2006 10:46:49.eml
    Failed to write complete file (7)
    Failed to write EML file.

Answer:
Colon characters are not legal in Windows filenames.

Windows does not allow the following characters in filenames: \ / : * ? " < > |

There is no source code associated with this article.