File Management Utilities?

B

Ben Blackmore

Hi,

Does anyone know any good file management utilities? We have a server, with
a public drive that has been used as a general dump for the past 2 years, so
I'm looking for an application that can delete files based on last access
date. So files over 60 days will be moved to a folder called 'To Be Deleted'
then after another 30 days the files are deleted. I've only found 1 bit of
software (Delenda), but I'd like to test a few different applications and
see which is best.

Cheers

Ben
 
J

Jerold Schulman

Hi,

Does anyone know any good file management utilities? We have a server, with
a public drive that has been used as a general dump for the past 2 years, so
I'm looking for an application that can delete files based on last access
date. So files over 60 days will be moved to a folder called 'To Be Deleted'
then after another 30 days the files are deleted. I've only found 1 bit of
software (Delenda), but I'd like to test a few different applications and
see which is best.

Cheers

Ben

See tip 713 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
R

Robert Klemme

Ben Blackmore said:
Hi,

Does anyone know any good file management utilities? We have a server, with
a public drive that has been used as a general dump for the past 2 years, so
I'm looking for an application that can delete files based on last access
date. So files over 60 days will be moved to a folder called 'To Be Deleted'
then after another 30 days the files are deleted. I've only found 1 bit of
software (Delenda), but I'd like to test a few different applications and
see which is best.

If you've got Ruby it's as easy as this:

ruby -e 't=Time.now-60*24*60*60;Dir["**/*"].each{|f| File.delete(f) if
File.atime(f)<t}'

(Use "File.mtime" for modification time.)

You can do similar things with perl and also combinations of
find/xargs/rm.

robert
 
J

Jay Somerset

Hi,

Does anyone know any good file management utilities? We have a server, with
a public drive that has been used as a general dump for the past 2 years, so
I'm looking for an application that can delete files based on last access
date. So files over 60 days will be moved to a folder called 'To Be Deleted'
then after another 30 days the files are deleted. I've only found 1 bit of
software (Delenda), but I'd like to test a few different applications and
see which is best.

Cheers

Ben

As well as the script methods (Shulman and Klemme responses) you can do it
manually with Explorer.

Right click the title bar in the explorer window, and add the attribute
"accessed". Sort on this column, and shift-click to select all files
accessed before your desired date, and delete. Use shift-delete to skip
sending them to the Recycle Bin.

The downside of this method is that it will only work on one subdirectory at
a time, but for occasional use, it is fine.
 
B

Ben Blackmore

Jay Somerset said:
As well as the script methods (Shulman and Klemme responses) you can do it
manually with Explorer.

Right click the title bar in the explorer window, and add the attribute
"accessed". Sort on this column, and shift-click to select all files
accessed before your desired date, and delete. Use shift-delete to skip
sending them to the Recycle Bin.

The downside of this method is that it will only work on one subdirectory at
a time, but for occasional use, it is fine.

Hi,

Trouble is we need to run it quite often on our main server, maybe once a
week, and there are a huge numbe rof directories of there, I think it would
be a huge job to sort through each folder and do it manaually. Looks like I
might have to tell my boss to pay up and buy the license for Delenda!

Cheers

Ben
 
R

Robert Klemme

Ben Blackmore said:
subdirectory

Hi,

Trouble is we need to run it quite often on our main server, maybe once a
week, and there are a huge numbe rof directories of there, I think it would
be a huge job to sort through each folder and do it manaually. Looks like I
might have to tell my boss to pay up and buy the license for Delenda!

You don't need to do it folder wise. You can either use the search with
no criteria and then proceed as described (select modified column etc.) or
you use the date filter for the search to find only files unmodified
before a certain date.

However, I do not know how to automate both of these. Unix scripting
languages are so much more well suited for these kinds of problems...

robert
 
N

Nick Landsberg

Robert said:
do it


like I



You don't need to do it folder wise. You can either use the search with
no criteria and then proceed as described (select modified column etc.) or
you use the date filter for the search to find only files unmodified
before a certain date.

However, I do not know how to automate both of these. Unix scripting
languages are so much more well suited for these kinds of problems...

robert

Check out www.mks.com

They have several products which run
under windows and
give you (almost) all the *nix tools,
including pretty good ksh, and the *nix
version of "find" to run from
a command line.

Don't know what the price is. Check it our
for yourself.
 
R

Robert Klemme

Nick Landsberg said:
Check out www.mks.com

They have several products which run
under windows and
give you (almost) all the *nix tools,
including pretty good ksh, and the *nix
version of "find" to run from
a command line.

Don't know what the price is. Check it our
for yourself.

What's the advantage over http://www.cygwin.com/ ? Cygwin is free, has
bash, ash, zsh, tcsh, perl, ruby...

robert
 
N

Nick Landsberg

Robert said:
[SNIP]
Check out www.mks.com

They have several products which run
under windows and
give you (almost) all the *nix tools,
including pretty good ksh, and the *nix
version of "find" to run from
a command line.

Don't know what the price is. Check it our
for yourself.


What's the advantage over http://www.cygwin.com/ ? Cygwin is free, has
bash, ash, zsh, tcsh, perl, ruby...

robert

Duh! I completely forgot about them, that's why!
My mistake.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top