Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete old folders recursiveContent of Delete old folders recursive.ps1MD5 Hash: D5F6285B47E474337365A1C086C7EE28 |
||
$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 :: |