If you need to test for wildcards, you should try this .NET method:
$path = "c:\test\*" [Management.Automation.WildcardPattern]::ContainsWildcardCharacters($path)
If you need to test for wildcards, you should try this .NET method:
$path = "c:\test\*" [Management.Automation.WildcardPattern]::ContainsWildcardCharacters($path)