Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-19-2003, 10:56 AM   #1
Pharaoh
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 117
Post [REQ] Auto-delete script

I am in need for a script which will automatically delete old releases from a dir (and its' subdirs) when this dir (including its' subdirs) reach a specific size.

For example:
let's say I have the following dirs:

DIR1
--SUBDIR1
----CD1
----CD2
--SUBDIR2
--SUBDIR3

and I want that the total size of DIR1 (including all the other subdirs, and CD1/CD2) not exceed 10g.
I need a script which will check all the subdirs below DIR1 for the oldest release and delete it to free enough space so the total size will never exceed 10g.

Thanks in advance for any assistance!
Pharaoh is offline   Reply With Quote
Old 10-19-2003, 11:11 AM   #2
Bratell
Member
FlashFXP Registered User
 
Join Date: Feb 2003
Posts: 64
Default Re: [REQ] Auto-delete script

Quote:
Originally posted by Pharaoh
I am in need for a script which will automatically delete old releases from a dir (and its' subdirs) when this dir (including its' subdirs) reach a specific size.

Thanks in advance for any assistance!
Aren't there already scripts for this? ioByteKiller and Warchive or somthing like that.
Bratell is offline   Reply With Quote
Old 10-19-2003, 11:11 AM   #3
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

WarChive can almost do that...
The only difference is that you need to specify the ammount of free space you want to leave free on that drive, not the total size of the folder.

Maybe ioByteKiller does that. Can't recommend, never tried.
Mouton is offline   Reply With Quote
Old 10-19-2003, 11:23 AM   #4
Pharaoh
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 117
Smile

Quote:
Originally posted by Mouton
WarChive can almost do that...
The only difference is that you need to specify the ammount of free space you want to leave free on that drive, not the total size of the folder.

Maybe ioByteKiller does that. Can't recommend, never tried.
WarChive doesn't help in this case because it is checking for free space on drive as u said and not used space in directory...it is totally different...
Pharaoh is offline   Reply With Quote
Reply

Tags
dir1, script, size, subdirs, total

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download grinding to a halt bruceh General Discussion 6 09-07-2004 08:29 AM
Send commands to a running FlashFxp. mag123 General Discussion 0 08-01-2004 04:14 AM


All times are GMT -5. The time now is 12:21 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)