问题
Hi I'm new to robocopy and need a little help. I know its really long but this is my batch file.
robocopy "c:\users\olsen" "z:\trial" /z /e /fft /r:3 /w:2 /log+:z:\trial\log\backup.txt /xa:sh /tee /mt:32 /xjd /np /xd *cookies *"application data" *contacts *downloads *favorites *links *onedrive *"saved games" *searches *videos *appdata
I'm trying to copy empty folders. Everything works great (almost) but it doesn't copy my empty folders. When i run my batch file and the command prompt screen shows my options this is what it shows
Options : . /FFT /TEE /S /E /DCOPY:DA /COPY:DAT /Z /NP /XJD /XA:SH /MT:32 /R:3 /W:2
(I bolded the "/s") Is one of my other switches turning this on or is robocopy just playing with me? Everything is transferring perfectly other than the empty files. I'm guessing that the /s is canceling out my /e.
Any thoughts?
Thanks for your help in advance.
Jeremy
来源:https://stackoverflow.com/questions/34984828/robocopy-adding-s-automatically