Re: Keeping file and folder date attributes on copy/move
- From: Philip Herlihy <me@xxxxxxxxxxxxxx>
- Date: Fri, 11 Sep 2009 13:17:17 +0100
John Smith wrote:
"Philip Herlihy" <me@xxxxxxxxxxxxxx> wrote in message news:N1Mpm.94707$gY4.37411@xxxxxxxxxxxxxxxxJohn Smith wrote:"Philip Herlihy" <me@xxxxxxxxxxxxxx> wrote in message news:255pm.79297$4f4.75337@xxxxxxxxxxxxxxxxWorks fine for me. Run robocopy /? and check the version. Mine is XP026John Smith wrote:Nope, threw its toys out with ERROR : Invalid Parameter #6 "/DCOPY:T""bcoombes" <bcoombes@orangedotnet> wrote in message news:sPednVTHUumxtjnXnZ2dnUVZ8qxi4p2d@xxxxxxxxxxxxxxxxxxxYou need to separate options with a space, so that line should be:John Smith wrote:It doesn't seem to like the /R:0/DCOPY:T part."bcoombes" <bcoombes@orangedotnet> wrote in message news:f9udnSS2KMplvznXnZ2dnUVZ8k-dnZ2d@xxxxxxxxxxxxxxxxxxxIf I understand what you are trying to do correctly this should work.Roger Hunt wrote: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.John Smith <jbloggs@xxxxxxxxxx> wroteNice 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 -"John Smith" <jbloggs@xxxxxxxxxx> wrote in message news:qoednfbwEt0DljnXnZ2dnUVZ8ladnZ2d@xxxxxxxxxxxxxxxI had a squint at Wikipedia - <http://en.wikipedia.org/wiki/Robocopy>"Philip Herlihy" <me@xxxxxxxxxxxxxx> wrote in message news:AyMom.83488$I35.15809@xxxxxxxxxxxxxxxxI notice that "robocopy D:\Files E:\" will only copy the contents of the Files directory to E and not the Files directory itself?harikeo wrote: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?John Smith wrote:The GUI is a bit buggy.
Is that a GUI or command line tool?By default it's command line but there is a GUI for Robocopy
Phil
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.
Anything there of use?
/DCOPY:T
robocopy D:\files E:\Stuff /COPYALL /E /R:0/DCOPY:T
ERROR : Invalid Parameter #5 "/R:0/DCOPY:T"
robocopy D:\files E:\Stuff /COPYALL /E /R:0 /DCOPY:T
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
Phil
.
- Follow-Ups:
- Re: Keeping file and folder date attributes on copy/move
- From: bcoombes
- Re: Keeping file and folder date attributes on copy/move
- From: John Smith
- Re: Keeping file and folder date attributes on copy/move
- References:
- Keeping file and folder date attributes on copy/move
- From: John Smith
- Re: Keeping file and folder date attributes on copy/move
- From: Philip Herlihy
- Re: Keeping file and folder date attributes on copy/move
- From: John Smith
- Re: Keeping file and folder date attributes on copy/move
- From: harikeo
- Re: Keeping file and folder date attributes on copy/move
- From: Philip Herlihy
- Re: Keeping file and folder date attributes on copy/move
- From: John Smith
- Re: Keeping file and folder date attributes on copy/move
- From: John Smith
- Re: Keeping file and folder date attributes on copy/move
- From: Roger Hunt
- Re: Keeping file and folder date attributes on copy/move
- From: bcoombes
- Re: Keeping file and folder date attributes on copy/move
- From: John Smith
- Re: Keeping file and folder date attributes on copy/move
- From: bcoombes
- Re: Keeping file and folder date attributes on copy/move
- From: John Smith
- Re: Keeping file and folder date attributes on copy/move
- From: Philip Herlihy
- Re: Keeping file and folder date attributes on copy/move
- From: John Smith
- Re: Keeping file and folder date attributes on copy/move
- From: Philip Herlihy
- Re: Keeping file and folder date attributes on copy/move
- From: John Smith
- Keeping file and folder date attributes on copy/move
- Prev by Date: Re: Insering A PCI Card (Win98)
- Next by Date: Re: Keeping file and folder date attributes on copy/move
- Previous by thread: Re: Keeping file and folder date attributes on copy/move
- Next by thread: Re: Keeping file and folder date attributes on copy/move
- Index(es):
Relevant Pages
|