![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete old folders recursive
|
||
$rootFolder = "C:\test"
$daysOld = -2 Get-ChildItem -Path $rootFOlder -Recurse | Where-Object { $_.CreationTime -gt $(get-date).addDays($daysOld) } | Remove-Item -force -Recurse | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |