Created
June 22, 2019 00:51
-
-
Save hsimah/1c34e6331bdbba8015d348bfda02e461 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Clean a filename | |
$Path.Split([IO.Path]::GetInvalidFileNameChars()) -join '_' | |
# Clean a directory path | |
$Path.Split([IO.Path]::GetInvalidPathChars()) -join '_' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment