Follow me!
 Liam Carle
  • Home
  • Contact
  • Blog

IT Tips! How-To Move Folders Older Than a Specified Number Of Days Using a Batch File

25/8/2014

0 Comments

 

I used this command in conjuntion with Windows Task Scheduler to move files off of a smaller hard-drive onto our NAS at work for archiving.

Open up notepad.
Enter the following command...
"robocopy s:\ource\directory d:\estination\directory /s /MOV /minage:20"
The s:\ and d:\ path's are obviously customisable to your needs, and the minage setting declares how old the file or folder needs to be before it is moved.
Save the file as "movefiles.bat"
Double-click the new .bat file to run the operation.

_

0 Comments



Leave a Reply.

    Author

    Welcome to my Blog! I will post about things that interest me, such as technology, science, photography/art and video gaming. Thanks for reading!

    Archives

    August 2014
    July 2013
    September 2012
    August 2012

    Categories

    All
    Catherine
    Diabetes
    Graduation
    How To
    Ipconfig
    It
    Life
    Lync
    News
    Psexec
    Windows
    Work

    RSS Feed

Powered by Create your own unique website with customizable templates.