How to delete old files from a DIR

Advertisement

Ikastvand
Joined:
Posts:
1
Location:
Danmark

How to delete old files from a DIR

After the upload, I would like to delete files older than 380 days.
How do I do that? I am scripting in PowerShell.
"rm *<380D" ^ does not work
Regards Lars

Reply with quote

Advertisement

martin◆
Site Admin
martin avatar
Joined:
Posts:
43,223
Location:
Prague, Czechia

Re: How to delete old files from a DIR

The rm *<380D should work (just tested). Please post your complete code and session log file.

Reply with quote

Advertisement

You can post new topics in this forum