Last active
September 19, 2018 12:50
-
-
Save markhallen/909d8058926593311be400336ffacc3e to your computer and use it in GitHub Desktop.
Remove characters that are invalid for file names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.IO.Path]::GetInvalidFileNameChars() | % {$text = $text.replace($_,'.')} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment