Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell delete files older than 15 days

Get-ChildItem "C:	emp" -Recurse -File | Where CreationTime -lt  (Get-Date).AddDays(-15)  | Remove-Item -Force
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #powershell #delete #files #older #days
ADD COMMENT
Topic
Name
8+2 =