Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Saturday, October 13, 2018 10:29 PM
Robocopy is ignoring the /SL feature. (/SL :: copy symbolic links versus the target.). This causes it to copy the Videos Music and Pictures folders twice because there are system shortcuts to these folders in the Documents folder for compatibility.
Command is as follows (replace ***** with user name):
robocopy "C:\Users\*****\Documents" "E:\*****\Documents" /sl /mir
robocopy "C:\Users\*****\Videos" "E:\*****\Videos" /sl /mir
robocopy "C:\Users\*****\Music" "E:\*****\Music" /sl /mir
robocopy "C:\Users\*****\Pictures" "E:\*****\Pictures" /sl /mir
Please fix this Microsoft.
All replies (5)
Sunday, October 14, 2018 7:54 PM
I think that you need to use these switches.
/XJ :: eXclude Junction points and symbolic links. (normally included by default).
/XJD :: eXclude Junction points and symbolic links for Directories.
C:\Users\Dave\Documents>dir /a my*
Volume in drive C is OS
Volume Serial Number is 9EE0-DE09
Directory of C:\Users\Dave\Documents
05/01/2018 09:07 PM <JUNCTION> My Music [C:\Users\Dave\Music]
05/01/2018 09:07 PM <JUNCTION> My Pictures [C:\Users\Dave\Pictures]
05/01/2018 09:07 PM <JUNCTION> My Videos [C:\Users\Dave\Videos]
Monday, October 15, 2018 1:33 PM
Hi,
According to my research, /mir means that it mirrors a directory tree (equivalent to /e plus /purge), and in C:\Users\***\Documents, the system thinks of the system shortcuts of Videos, Music and Pictures as file folders, so when we use the command robocopy "C:\Users\****\Documents" "E:\****\Documents" /sl /mir, it copies all the data in the system shortcuts of Videos, Music and Pictures.
But when we use the command robocopy "C:\Users\****\Documents" "E:\****\Documents" /sl, it will only copy file.
Best Regards,
Daisy Zhou
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Monday, October 15, 2018 2:49 PM
Use the /xjd switch.
Wednesday, October 17, 2018 5:54 AM
Hi,
If this question has any update? Also, for the question, is there any other assistance we could provide?
Best Regards,
Daisy Zhou
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, October 19, 2018 7:32 AM
Hi,
I am just writing to see if this issue has any update. If anything is unclear, please feel free to let us know.
Have a nice day!
Best Regards,
Daisy Zhou
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].