Re: Keeping file and folder date attributes on copy/move




"Philip Herlihy" <me@xxxxxxxxxxxxxx> wrote in message
news:gdrqm.92953$bU2.48284@xxxxxxxxxxxxxxxx
John Smith wrote:
"Philip Herlihy" <me@xxxxxxxxxxxxxx> wrote in message
news:N1Mpm.94707$gY4.37411@xxxxxxxxxxxxxxxx
John Smith wrote:
"Philip Herlihy" <me@xxxxxxxxxxxxxx> wrote in message
news:255pm.79297$4f4.75337@xxxxxxxxxxxxxxxx
John Smith wrote:
"bcoombes" <bcoombes@orangedotnet> wrote in message
news:sPednVTHUumxtjnXnZ2dnUVZ8qxi4p2d@xxxxxxxxxxxxxxxxxxx
John Smith wrote:
"bcoombes" <bcoombes@orangedotnet> wrote in message
news:f9udnSS2KMplvznXnZ2dnUVZ8k-dnZ2d@xxxxxxxxxxxxxxxxxxx
Roger Hunt wrote:
John Smith <jbloggs@xxxxxxxxxx> wrote
"John Smith" <jbloggs@xxxxxxxxxx> wrote in message
news:qoednfbwEt0DljnXnZ2dnUVZ8ladnZ2d@xxxxxxxxxxxxxxx
"Philip Herlihy" <me@xxxxxxxxxxxxxx> wrote in message
news:AyMom.83488$I35.15809@xxxxxxxxxxxxxxxx
harikeo wrote:
John Smith wrote:

Is that a GUI or command line tool?

By default it's command line but there is a GUI for Robocopy
The GUI is a bit buggy.

Phil
So the command line to copy all files from D:\Files to
E:\Files, keeping all attributes is simply "robocopy D:\Files
E:\Files"? or are there secret switches that need to be added
also?
I notice that "robocopy D:\Files E:\" will only copy the
contents of the Files directory to E and not the Files directory
itself?

And again "robocopy D:\Files E:\Stuff" will copy the contents of
the Files directory but not the directory itself? Essentially I
am looking to create E:\Stuff\Files while keeping the original
attributes from "Files" on D.
I had a squint at Wikipedia -
<http://en.wikipedia.org/wiki/Robocopy>

Anything there of use?

Nice link, Wiki's amazing, I had no idea there was a
multi_threaded copy switch for Windows 7. Anyway the following
command line switch copies directory timestamps -

/DCOPY:T
Yeah, but when copying D:\Files to E:\Stuff, using "robocopy
D:\Files E:\Stuff", only the contents of D:\Files is copied, not
the D:\Files directory. Of course I can create it, as in "robocopy
D:\Files E:\Stuff\Files" but the timestamp is of the current date
and time which defeats the point of using robocopy. Also, on
reading the help files, it seems the default is to copy timestamps
(/COPY:DAT) so you don't need to use the switch to do it.
If I understand what you are trying to do correctly this should
work.
robocopy D:\files E:\Stuff /COPYALL /E /R:0/DCOPY:T
It doesn't seem to like the /R:0/DCOPY:T part.

ERROR : Invalid Parameter #5 "/R:0/DCOPY:T"
You need to separate options with a space, so that line should be:
robocopy D:\files E:\Stuff /COPYALL /E /R:0 /DCOPY:T
Nope, threw its toys out with ERROR : Invalid Parameter #6 "/DCOPY:T"


Works fine for me. Run robocopy /? and check the version. Mine is
XP026

Phil

It is XP10 - Downloaded from the Microsoft website together with the
Server 2003 resource pack. Where do I get the latest version?

It's a bit odd, but the latest version I know of is the one that comes
bundled with the gui. See:
http://technet.microsoft.com/en-us/magazine/2006.11.utilityspotlight.aspx

How long should it take me to copy 50GB over USB 2.0 - I tried the Rich Copy
from the same site and it took a fair old while.


.



Relevant Pages