Current location: Hot Scripts Forums » General Community » Script Requests » Automatic File Deletion script


Automatic File Deletion script

Reply
  #1 (permalink)  
Old 11-02-03, 12:18 PM
darkcurves darkcurves is offline
New Member
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post Automatic File Deletion script

Hi,
I am using this upload script http://webdev.mtnpeak.net/index.php?pg=php . The problem is, i cant set it to delete files which are older than a certain period of time,say like 2 weeks. So i need a PHP script that can delete files after a certain time. Is there such a script? Thanks in advance. I really appreciate it.
Reply With Quote
  #2 (permalink)  
Old 04-25-11, 07:56 PM
johnMazz johnMazz is offline
New Member
 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
VBScript soution

I think I have written a WSH VBScript application that does what you want and can be downloaded via the linked to page with an example usages. I use this scripts to delete and/or Archive files to a compressed drive. It is designed to run WSH XML from a BAT file using the windows scheduler. inside each bat file are Delete and/or Archive Jobs that you want to run on servers to keep them clean of files left behind by users or misbehaving application. logs are created for each file that was deleted or moved to the archive location. I created this "archiving" feature because most of the files that are being deleted not mine so I mail out the delete logs for final approval. A job is also run on the Archive location so files are automatically deleted after 90 days. This should give the users enough time to let you know it they would like a file restored

Examples of variables that can be defined via the WSH jobs are ... Name of the files using regular expressions, Age of the file in days, folder to be searched, and log file to create.

Here is the link to the Site....
Code-Bytes:VBScript Solution that uses Windows Scripting Host to Automatically Scheduale File Deletions and Archiving Tasks

Please forgive me as the salesman in me comes out here.... If it Scripts save you time/effort or eliminates the need to purchase more drive space. Please feel free to donate an amount you feel comfortable with

as always suggestion for improvements are always welcome

John
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP File counting script Raine Script Requests 2 09-25-03 08:39 AM
automatic motd script? althalus Script Requests 10 09-21-03 11:06 AM
Script for picking the first HTML file out of a directory (with sorted HTML files) jelteveld Script Requests 0 08-16-03 01:30 PM
Upload file type and size limiter! Arctic ASP 1 08-02-03 07:06 PM
automatic alignement script amj01 Script Requests 2 07-04-03 01:22 PM


All times are GMT -5. The time now is 11:27 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.