Hi,<\/p>\n
I am trying to use robocopy to clean up some old file shares. The problem is that some of the data is already present on the destination.<\/p>\n
When I run robocopy.exe I could force it to move all files, but that would mean copying files that already exist, and is a waste of bandwidth and time.<\/p>\n Does anyone know of any switches I can use to make sure that all files are removed from the source when robocopy if finished, without copying everything again?<\/p>\n Best regards,<\/p>\n Muttley<\/p>","upvoteCount":4,"answerCount":7,"datePublished":"2014-01-03T08:56:45.000Z","author":{"@type":"Person","name":"muttleymc8973","url":"https://community.spiceworks.com/u/muttleymc8973"},"acceptedAnswer":{"@type":"Answer","text":" If the files that are skipped are ONLY skipped because they are present in the destination why can’t you just delete the directory (or delete all the contents) after running the robocopy command?<\/p>\n Also .<\/em><\/strong> is the default and is unnecessary to type out in the command. You can just do the following:<\/p>\n Hi,<\/p>\n I am trying to use robocopy to clean up some old file shares. The problem is that some of the data is already present on the destination.<\/p>\n When I run robocopy.exe I could force it to move all files, but that would mean copying files that already exist, and is a waste of bandwidth and time.<\/p>\n Does anyone know of any switches I can use to make sure that all files are removed from the source when robocopy if finished, without copying everything again?<\/p>\n Best regards,<\/p>\n Muttley<\/p>","upvoteCount":4,"datePublished":"2014-01-03T08:56:45.000Z","url":"https://community.spiceworks.com/t/robocopy-move-files-and-delete-skipped-files/266185/1","author":{"@type":"Person","name":"muttleymc8973","url":"https://community.spiceworks.com/u/muttleymc8973"}},{"@type":"Answer","text":" Synctoy would work better here. Use the sync option and it will do it for you<\/p>\nrobocopy.exe <source> <destination> /MOVE /E\n<\/code><\/pre>","upvoteCount":2,"datePublished":"2014-01-03T11:56:08.000Z","url":"https://community.spiceworks.com/t/robocopy-move-files-and-delete-skipped-files/266185/2","author":{"@type":"Person","name":"it4577","url":"https://community.spiceworks.com/u/it4577"}},"suggestedAnswer":[{"@type":"Answer","text":"