Solved ROBOCOPY - /MOV to two destination folders

robocopy

New member
Local time
3:02 PM
Messages
2
Hi there,

New to the forum, please go easy :)

I've got a robocopy moving a file using /MOV from one folder to another.

Is it possible to add a second destination so that the contents of the original folder will be moved to both destination folders? How would the syntax look? (below is current syntax)

robocopy "\\source path" "\\destination path" /S /E /V /NP /MOV /XD in /R:10 /W:30

Thanks
 

My Computer My Computer

At a glance

Windows 7 x64
Computer type
PC/Desktop
OS
Windows 7 x64

My Computer My Computer

At a glance

Windows 7 Enterprise 64bit
Computer type
PC/Desktop
OS
Windows 7 Enterprise 64bit
Thanks sandravlado.

Looks like the first option will do the trick. Just need to remove /MOV from first job on the batch file so it only copies and then the second one copies and deletes original.


robocopy "\\source path" "\\1st destination path" /NP /R:10 /W:30

robocopy "\\source path" "\\2nd destination path" /S /E /V /NP /MOV /XD in /R:10 /W:30
 

My Computer My Computer

At a glance

Windows 7 x64
Computer type
PC/Desktop
OS
Windows 7 x64
Back
Top