Answered Robocopy /MAXLAD and MinLAD

  • Friday, October 12, 2012 12:48 PM
     
     

    Ok, i have a problem with Robocopy.

    I need to move files that have not been accessed in 2 years to a storage server.

    Following is my robocopy script, but it just moves all the files one to the other, can someone help me here.

    sCMD = "/E /Maxage:19900101 /MINAGE:20120101 /ts /fp /L /LOG+:\c:\rblog.txt

    


    JRD

All Replies

  • Friday, October 12, 2012 1:13 PM
     
     

    Ok, i have a problem with Robocopy.

    I need to move files that have not been accessed in 2 years to a storage server.

    Following is my robocopy script, but it just moves all the files one to the other, can someone help me here.

    sCMD = "/E /Maxage:19900101 /MINAGE:20120101 /ts /fp /L /LOG+:\c:\rblog.txt

    JRD

    Not really a scripting question but a question on how to use console commands. Anyway, I notice a few strange things:

    • You want to move files but you omitted the /mov switch.
    • You want to move files older than 2 years but you specify a cut-off date of 1 January 2012.
    • You want to move files according to the "last accessed" date but you specify the file age as a criterion (which is usually different from the "last accessed" date.

    Back to the drawing board . . .


  • Friday, October 12, 2012 1:19 PM
     
     

    Yes, i have omitted the /mov - because i am testing it on my machine.

    I tried minlad and maxlad but that also doesn't seem to work.

    I have some files in my (test)source folder) which range from 2004 to 2012, october. I have tried to move the files accessed from 2004 to 2011, but it just moves all the files from my source to my destination folder.

    Question: is it necessary to specify both the minlad and max lad for the robocopy to work??

    When i right click the files that i want to move they have these properties.

    Created date: october 11 2012

    Modified date Jan  12 2004

    Accessed date October 11 2012

    I need to move files based on not accessed.


    JRD


    • Edited by Jenefa Friday, October 12, 2012 1:22 PM
    •  
  • Friday, October 12, 2012 2:01 PM
     
     Answered

    Yes, i have omitted the /mov - because i am testing it on my machine.

    Not a scripting question but a question on how to use console commands. "Scripting" refers to programming in a language such as batch, PowerShell or VB Script. Try a forum that focuses on Windows admin tools and commands.
  • Friday, October 12, 2012 2:12 PM
     
     
    Thank you.

    JRD