How to clean duplicate "copy" files from Microsoft Onedrive
How to clean duplicate "copy" files from Microsoft OneDrive using robocopy. You can use this same method to clean any windows directories of specific filenames or even directory names using the XF and XD switches. If you have a bunch of duplicate files with the work "copy" in them for example, here's how you can clean it up: # copy excluding filename robocopy "C:\Users\bill speers\OneDrive\Documents\test" "C:\Users\bill speers\OneDrive\Documents\test ex" /e /mt:32 /xf *copy* /log+:%temp%\robolog.log # backup original robocopy "C:\Users\bill speers\OneDrive\Documents\test" "C:\Users\bill speers\OneDrive\Documents\test backup" /e /mt:32 /log+:%temp%\robolog.log # Mirror new copy * robocopy "C:\Users\bill speers\OneDrive\Documents\test ex" "C:\Users\bill speers\OneDrive\Documents\test" /mir /l /mt:32 /log+:%temp%\robolog.log /tee * make note of the /l /tee here. This command will not copy anything unt...