Why can´t I substitute a string variable in get-childitem expression
I try to write
$strExclude ="*?.resx,web.config"
Get-ChildItem *.* -exclude $strExclude
If I run that script the Get-ChildItem don´t seem to recognize the exclusion part.
But if I write Get-ChildItem *.* -exclude...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.