Jump to content

Checking to see which files/folders are not being used on shared areas


Recommended Posts

Posted

Hi,

 

was wondering if anyone out there could help....

am trying to do a tidy up and free up some space on some of our shared drives...

wanted to find out if anyone knows how to find when a file or folder was last used?

 

 

any ideas would be great

 

 

thanks

Posted (edited)

Robocopy has some cool options built in:

 

Used with a /MOVE option, Robocopy with the /MINLAD option allows you to move 'old' files (you specify how 'old' the files have to be)

/MINLAD:n : MINimum Last Access Date - exclude files used since n.

(If n < 1900 then n = n days, else n = YYYYMMDD date).

 

Robocopy

Edited by jinnantonnixx
Posted (edited)

For instance, this will copy files that haven't been accessed within 180 days. In effect, it will copy all files in finds that are older than 6 months from location \\Server1\Someshare to location \\Server1\Archive. The " /S " means it will traverse down through the folder structure, copying the sub-folder structure as necessary to the target.

 

ROBOCOPY \\Server1\Someshare \\Server1\Archive * /S /MINLAD:180

 

When you are sure it does what you need, you can add " /MOVE " to the command to move the files, thus deleting them from the source.

 

If you're not too happy with the command line, don't proceed as you can do an awful lot of damage if you get something like this wrong.

Edited by jinnantonnixx
Posted
JDisk is a great tool for this, shows counts ages and groups by file type. The reports can be saved and shown to management!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...