Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to delete files after a period of time

Status
Not open for further replies.

dtorres

MIS
Sep 25, 2002
177
US
I this application that allows user to create PDF files. It basically creates a virtural printer that when they print to it the end result is a .pdf file. The files get stored on the server in that particular users pdf folder. They then go to that folder and retrieve the pdf document.

What is occuring, users are not deleting or removing the file from there directory and the server is building up with all these pdf files. I would like to run a script or something that will delete .pdf files from that directory if it is older than 2 weeks of the date it was created.

Any ideas or suggestions would be greatly apprecited.

"D"
 
You might be able to adapt the "Temp File Tool" from JV16 Power Tools to do what you want.

Download freeware JV16 Power Tools from....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top