2013-09-05 5 views
0

다음 필터는 .properties 파일 만 검사되지만 .sh와 같은 다른 파일은 검사합니다. 누구든지 내 필터에서 실수를 볼 수 있습니까?Powershell -Filter가 예상대로 작동하지 않습니다.

Get-ChildItem -Path $directoryToTarget -Filter "*.properties" -Recurse | where { !$_.PSIsContainer } | % { 

고마워요!

+0

명령의 결과의 일부 샘플을 갖는 것이 도움이 될 것이다 –

답변

1

나는 당신이 -Include 싶은 생각 :

Get-ChildItem -Path $directoryToTarget -Include *.properties -Recurse | where { !$_.PSIsContainer } | % { 
관련 문제