robocopy adding /s automatically

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 16:07:00

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!