Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have the following powershell script, which executes a few robocopy commands:

ROBOCOPY.exe $q3 $q4 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD
ROBOCOPY.exe $q2 $q3 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD
ROBOCOPY.exe $q1 $q2 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD
ROBOCOPY.exe $src $q1 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD

This works fine, but it takes a really long time, I'm wondering, if there is a way that I can have robocopy do a "cut + paste" instead of a "copy + paste" so windows will move the NTFS pointer to the file, instead of actually copying all of the bits of each file?

share|improve this question
add comment

3 Answers 3

up vote 4 down vote accepted

The /MOV option is designed to do exactly that. Check your specific version of robocopy for it (robocopy /? should show the option).

enter image description here

share|improve this answer
    
RoboCopy.exe with /MOVE used to delete source files, but now it sees the source is the same as destination and leaves the source. Win2008r2. MS knows there are problems with RoboCopy. Very Disappointing. –  rjt Mar 22 '12 at 20:45
add comment

Robocopy only leaves empty source folders when using /MT (in my case 32) switch, if I don't use /MT everything is moved, running on 2008R2.

share|improve this answer
add comment

There is no need to learn these commands when there are utilities to move data around with same attributes like date & time

Here are few of the tools

http://www.lantechsoft.com/data-copy.html

http://www.technocomsolutions.com/data-copy-tool.html

Seems to work very well and has Graphic user interface

share|improve this answer
    
A graphical user interface is exactly what I was trying to avoid, it is hard to script a GUI. –  Nate Mar 29 '13 at 14:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.