PowerTip: Use PowerShell to Display Invalid File Names

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:


Comments (1)

Skip to main content