Created
November 15, 2015 19:28
-
-
Save IISResetMe/790730924b1effd4dc95 to your computer and use it in GitHub Desktop.
Manually escape wildcards
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
gci Test*|select @{Name="Path";Expression={[regex]::Replace($_.FullName,"\[|\]|\*|\?",{'`{0}'-f$args[0]})}}|gci -Recurse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment