none
Using Robocopy

    Question

  • I am trying to use robocopy in a batch file to move log files that are older than 5 days into a subdirectory of the current directory.  Also I want it to report only how many files were copied just like copy and xcopy do.

    Here's what I have now:

    robocopy . ./OldLogFiles *.log /MOV /MINAGE:5 /NS /NC /NDL /NJH /NJS

    When I run it, it looks like it recopies the files in the /OldLogFiles folder too.  It list all the filenames and the filepath.

    I am trying to run this also on Windows Server 2008 R2 Standard (if that makes a difference).

    Thanks for any help,


    Fred

    Thursday, March 23, 2017 6:38 PM

Answers

All replies