Skip to content

Instantly share code, notes, and snippets.

@markhallen
Last active September 19, 2018 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markhallen/909d8058926593311be400336ffacc3e to your computer and use it in GitHub Desktop.
Save markhallen/909d8058926593311be400336ffacc3e to your computer and use it in GitHub Desktop.
Remove characters that are invalid for file names
[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