RoboCopy syntax help needed
Posted on 2013-10-31
I have a list of files that I need to copy from various locations on a windows network into one folder on another windows file server.
I need to retain the file owner, create date and modify date.
Based on my research and google searches, RoboCopy is the most suitable tool for the job.
However, I cannot get it to retain the create date. I'm using the following command:
RoboCopy /"\source location\/" /"\destintion location\/" "file name" /copy:DATO /dcopy:T /ts /fp /r:0 /tee /log:C:\testlog.txt
Based on my research, the parameter "/copy:DATO" should allow me to retain all dates but it's not working. Please help me correct this.
My 2nd question is: if there are two files with the same name in the source locations which I'm now trying to copy into the same destination folder, how will roboCopy handle that? Do I have options available to prompt, ore replace, or skip or rename?
I'm running the command on a Windows 7 machine.