Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Robocopy to move files and folders without deleting root directory

$
0
0

Is it possible to use robocopy to move ALL FILES AND FOLDERS from \\server1\share1\robo\test to \\server2\share2\ robo\test without deleting \\server1\share\robo\test ? (last part of share1). The root directory contains files and subfolders. 

robocopy \\server1\share1\robo\test \\server2\share2\robo\test *.* /MOVE /S  ### moves source .\test 

robocopy \\server1\share1\robo\test \\server2\share2\robo\test *.* /MOV /S   ### moves files and folders without deleting source folders 

if robocopy can't do that how could it be done with powershell ?


Siegmund Sonntag


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>