in Delphi TIPS
:: If you have an application that operates on the file system and one of the tasks of the application is creating or manipulating files you might need to check if a given file name is valid - will Windows allow your code to save a file using the specified file name.
Read the full article to learn how to Check if a given File Name is Valid using Delphi
The code does what Windows Explorer warns about if you try to name a file using invalid characters: A file name cannot contain any of the following characters: \ / : * ? " < > |