home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 40,779 of 42,547   
   foxidrive to Anton Bayer   
   Re: howto copy subdirs keeping date and    
   27 Oct 13 00:53:16   
   
   From: foxidrive@server.invalid   
      
   On 26/10/2013 23:42, Anton Bayer wrote:   
   > How can I copy (in append mode) directories so that not only files but also   
   > subdirs will keep their timestamp?   
   >   
   > Using ROBOCOPY   /E /COPY:DAT will copy/create even   
   > empty directories and files will keep their timestamp, but the newly created   
   > subdirs will have the actual date/time stamp and not the original one, and   
   > ROBOCOPY option /MIR cannot be used because it does not append new data but   
   > delete old ones.   
   >   
   > For XCOPY I didn't find a way to keep timestamps.   
   >   
   >   
   >   
      
   Robocopy has this option in later versions.   
      
    /DCOPY:T :: COPY Directory Timestamps.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca