Help needed - Automated delete commands
Help needed - Automated delete commands
Author
Discussion

Fish

Original Poster:

4,064 posts

312 months

Wednesday 10th August 2005
quotequote all
Been trying to sort this for a while but no success. Any help would be appreciated;

I want to run a sript/ app/ something which will delete files in a specific folder that are more than a month old from mlast modification.

Can I find a script that will do it. -NO-

So if anyone has a Batch file that will do it or a Kixtart script that will do it it would be much appreciated.

Cheers

James

zumbruk

7,848 posts

290 months

Wednesday 10th August 2005
quotequote all
find {foldername} -type f -mtime 31+ -exec rm {} ;

Well, you didn't specify which O/S you wanted ...

ErnestM

11,621 posts

297 months

Wednesday 10th August 2005
quotequote all
Windows Server: Try Forfiles.exe

click here

ErnestM

chim_knee

12,689 posts

287 months

Wednesday 10th August 2005
quotequote all
This would only take me a few moments to knock one up for you in VB. PM me tomorrow if you would like me to (I'm leaving work shortly so plenty of time to do it!)

Oh - assuming a recentish Windows OS!

>> Edited by chim_knee on Wednesday 10th August 23:44

fish

Original Poster:

4,064 posts

312 months

Thursday 11th August 2005
quotequote all
Chim Knee YHM Cheers