MrPurple Development

Development, Games and more …

function isToday ([datetime]$date)
{[datetime]::Now.Date  -eq  $date.Date}
 
PS> dir > test.txt
PS>
dir |where {isToday $_.lastwritetime}
    Directory: Microsoft.PowerShell.CoreFileSystem::C:ps
 

Ausgabe der PS:

Mode                LastWriteTime     Length Name
—-                ————-     —— —-
-a—          9/6/2006   8:20 AM      47086 test.txt

May 5th, 2010

Posted In: Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.