The use of $

This forum can be browsed by the general public. Posting is no longer allowed as the product has been discontinued.
Locked
User avatar
WildWind
Posts: 2
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Tue Feb 14, 2012 2:55 am

The use of $

Post by WildWind »

I'm new to Powershell, trying to switch over from VBScript and doing my best to learn it.I've search reference sites and docs but cannot find much on the "$" use, outside of "$_" referring to the current input object.My question is... What is the leading $ doing in the 3rd line of this code?
$filesToRemove = Get-Childitem $path -recurse |?{ !$_.PSIsContainer -and$($_.LastWriteTime -lt $oldestAllowed) -and($_.Extension -eq $extension)}

User avatar
Alexander Riedel
Posts: 7265
Joined: Tue May 29, 2007 4:43 pm

The use of $

Post by Alexander Riedel »

This seems like a question for scriptinganswers.com
I'd suggest to post that there.
Alexander Riedel
SAPIEN Technologies, Inc.

Locked