Quantcast
Channel: Answers for "Please provide a script which will delete old back"
Viewing all articles
Browse latest Browse all 14

Answer by Grant Fritchey

$
0
0
What, no one is using PowerShell? First attempt, this seemed to work: Get-ChildItem c:\backup | where {$_.LastWriteTime -lt (Set-Date -Date (Get-Date).AddDays(-1))} | Remove-Item

Viewing all articles
Browse latest Browse all 14

Trending Articles