Robocopy: How to move the content of a directory but KEEP the directory
I have been trying to do the same from a network share. SET MoveDirSource=\\Server\Folder SET MoveDirDestination=Z:\Folder Here are my findings and solution from tests on a Windows 7 machine. Suggestion: ROBOCOPY “%MoveDirSource%” “%MoveDirDestination%” /MOVE /E Problem: Moves source folder. Suggestion: ROBOCOPY “%MoveDirSource%” “%MoveDirDestination%” /MOVE /E /XD “%MoveDirSource%” Problem: Still moves source folder. Suggestion: ROBOCOPY “%MoveDirSource%” … Read more