Solved

Auto delete files

Posted on 2002-03-19
4
115 Views
Last Modified: 2013-12-28
I have a camera server that uses FTP to upload images to a workstation every second.  I'm looking for a utility or simple script that will delete files from the image directory to automate the archival process so there is always 2 weeks worth of stored images.  Can someone recommend a free or inexpensive way to do this?  The machine that the files are sent to runs Win 98.  Thanks!

LMar
0
Comment
Question by:lmar
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
rayt333 earned 100 total points
ID: 6881708
How do you have it set to name the pictures, does it use the date in the name or anything? What I am thinking is can you set it so it runs the names of the files in a 2 week cycle, so then when it starts the cycle over after 2 weeks then it is simply replacing the old file of the same name with the new one.
0
 
LVL 3

Expert Comment

by:CyberStretch
ID: 6883219
Another couple of possibilities. You could:

1) Set the script up to check either the Modified or Last Access Dates of the files in the directory, compile a list based off your date criteria (possibly even automate it to take the current date and subtract 2 weeks), and use the sorted list as basis for the files to delete.

2) Set up the FTP directory on the Server or the Workstation according to biweekly dates (ie: 031702, 033102, etc) and have the current FTP session point to the new directory every two weeks. This would make deleting the files easier, as all you would have to do is use deltree to get rid of the old folder and all of its contents.

0
 
LVL 1

Expert Comment

by:Computer101
ID: 7134455
Hello all,
I am Computer101, a moderator from Experts-Exchange and also an expert within this topic area. This uestion has been open a long time.  What I am going to do is allow feedback from the questioner and xperts.  If it is not resolved, I will delete or accept an answer based on the info I have been given, Experts, feel free to offer input.  I will monitor these questions for a period of 5-7 days and come back and evaluate.  I will have another moderator (who is also an expert in this topic area) look at the question also to ensure we do the right thing for this question.

Thank you
Computer101
Community Support Moderator
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7348446
Comment from expert accepted as answer.  Cyberstrectch, look for your question in this topic area.

Computer101
E-E Admin
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question