SouthpawPhoto
04-21-2008, 04:58 PM
I am going to try and hit 2 similar birds with 1 stone in this thread.
1) Our network printer has a scan to PDF function and the files are saved into the network folder G:\Scan Storage. People forget or accidentally hit the wrong button and the files never get removed. What I am looking to do is have files older than 14 days old get automatically deleted from the folder above. If it matters, only PDF's are stored in this folder.
2) The next questions is similar to the one above. I would like to delete *.bak and plot.log files that are older than 30 days from the G: drive. There are hundreds of subdirectories and it needs to scan all of them.
Is there some script that can automatically run these functions so I don't have to hit a button? If it matters, our server is using Win Server 2003. I don't know what kind of script is needed for my application. I don't care if the script is on our network or on my local (Win XP) machine.
1) Our network printer has a scan to PDF function and the files are saved into the network folder G:\Scan Storage. People forget or accidentally hit the wrong button and the files never get removed. What I am looking to do is have files older than 14 days old get automatically deleted from the folder above. If it matters, only PDF's are stored in this folder.
2) The next questions is similar to the one above. I would like to delete *.bak and plot.log files that are older than 30 days from the G: drive. There are hundreds of subdirectories and it needs to scan all of them.
Is there some script that can automatically run these functions so I don't have to hit a button? If it matters, our server is using Win Server 2003. I don't know what kind of script is needed for my application. I don't care if the script is on our network or on my local (Win XP) machine.