PowerTip: Use PowerShell to Display Invalid File Names

Doctor Scripto

Summary: Use Windows PowerShell to display invalid file name characters.

Hey, Scripting Guy! Question How can I use Windows PowerShell to display information about invalid file name characters?

Hey, Scripting Guy! Answer Use the System.IO.Path class and call the GetInvalidFileNameChars static method:



Discussion is closed.

Feedback usabilla icon