This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I've been working on a size range filter script for over an hour and finally after reducing the Get-ChildItem to the bare minimum before piping to where-object got a hint at what was going on enough to check 'Help Get-ChildItem -Full' to fine this lovely gem. (Concerning '-Name') "If you pipe the output of this command to another command, only the item names are sent."
What genius thought that was a good idea? I guess lesson learned is Get-ChildItem is the exception to filter left to right? If some of the experts can shed some light on this I appreciate but geez.
EDIT: I know for you experts that have been doing this for years this would be a rookie mistake but yeah, I'm teaching myself and figuring out things as I go. So leaving this here in cause someone else has a brain fart and needs a jolt.
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/PowerShell/...