$DataFolder = “c:\scandocs”
$2Days = (get-Date).adddays(-2)
Get-Childitem $DataFolder -recurse | ?{!$_.PSIsContainer -and ($_.LastWriteTime -lt (get-Date).adddays(-2))} | remove-item -whatif -force
Search
About
You are currently browsing the weblog archives for the month June, 2009.
Longer entries are truncated. Click the headline of an entry to read it in its entirety.
Latest
Archives
Categories
- Uncategorized (6)
