Thread
:
Search filenames only
View Single Post
08-11-2009
#
3
(
permalink
)
svkk
Vista Home Premium 32bit
2 posts
Re: Search filenames only
It's been a little while, but I accidentally bumped into the solution the other day.
In short form:
Code:
ls |? {$_.Name -match "match me"}
Long form:
Code:
Get-ChildItem | Where-Object {$_.Name -match "match me"}
My System Specs
OS
Vista Home Premium 32bit
svkk
View Public Profile
Find More Posts by svkk