Discussion Locked

Schedule Folders and Files for deletion

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi All,

I am runnin win2000 server. There I have made a Share where all users have R+W Rights. This share is used to share files beatween users.

My question:

How can I make a Schedule to delete alle files and folders older then 7 days?

Any help would be great.

Regards,

Admir

1 reply

by carlos0463

Admir : I was researching this and I came across this in one of the other tech sites.

It seems this is the code to a script, give it a try if you want on a machine that is safe before you roll it out to actuall machines on the network.

============CODE====================
yeah. basically, you can set up a schedule to run the script once a day, that will delete all the stuff older that 1 day:

that will set the schedule.

then in the file to run:

This discussion is closed to new replies.