LuiLui77
asked on
Script to delete files from a particular directory
I am looking to automate the deletion of files on a particular directory. These files are created daily and I will need to delete all files except for the last 7 (last 7 days).
Does anyone has an idea on how to accomplish this?
Does anyone has an idea on how to accomplish this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hey Dan, thank you for the command line it worked perfectly.
Since I will use this command line on a 2003 server, I had to install Powershell 2.0 first.
Since I will use this command line on a 2003 server, I had to install Powershell 2.0 first.
Open in new window
~bp