Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 10672

Robocopy file parameter not working properly (intermittently)

$
0
0

Hi,

I am trying to use robocopy to move outdated files to a new folder, here is the script I used:

robocopy ".\ori_folder" ".\archive_folder\2007" "200710*.*" "200711*.*" "200712*.*" /MOV /r:3 /w:10 /sec /log+:"Archive_2007_file.log"

I expect the script will only move files with name begin with "200710" or "200711" or "200712",

however, some files not meeting the criteria also been moved...

you can see from the below result log that in the end of the file list, files begin with 2011 and 2012 also being copied.

this symptom occurs intermittently,  with the same pool of files in the source folder, sometimes the script works fine, but sometimes the same script will move unexpected files.

Is there anything wrong with my script? 

-------------------------------------------------------------------------------

  Started : Tue Feb 18 13:44:40 2014

   Source : S:\ori_folder\
     Dest : S:\archive_folder\2007\


    Files : 200710*.*
   200711*.*
   200712*.*
   
  Options : /COPY:DATS /MOV /R:3 /W:10 

------------------------------------------------------------------------------

...

...

   New File   13658820071121_HV0000_S_DSTR.xml
100%  
   New File    2161720071226_000000_S_JREC.xml
100%  
   New File   42287820071226_000000_S_SMON.xml
100%  
   New File    1960120071226_000000_S_TREC.xml
100%  
   New File     224720071227_000000_S_SPHL.xml
100%  
   New File      52720111106_S20000_S_ASUM.xml
100%  
   New File      31920120105_S10000_S_DWST.xml
100%  



Viewing all articles
Browse latest Browse all 10672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>