Robocopy /move problem

Hi

In Windows 8.x, should I move the entire contents of a directory (containing files and directories) in a Media sub-directory.

I have:

c:\Test
c:\Test\<File_name1>.txt
c:\Test\<File_name2>.txt
c:\Test\b
c:\Test\c

I have tried with the command

robocopy c:\Test c:\Test\Media /move

but it only moves the files of the Test directory.

How come the move option of robocopy acts like the mov option that is to say moves only the files and not the directories?

So, how do I move even the directory?

Thanks

April 23rd, 2015 6:08am

I tried

robocopy c:\Test c:\Test\Media /e /move

but the entire contents of the c:\Test directory is moved to c:\Test\Media\Media and not to c:\Test\Media directory. Why?

Thanks

Bye

Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2015 1:53pm

I'm still waiting for an answer to my question.

Thanks

Bye

April 26th, 2015 11:28am

Hi balubeto,

Because this command create/scan Destination (C:/text/media) before/during copy process (copy all content to C:\text media), then when it scan the source folder last round, it found still have one folder (c:/text/media) to copy, so it will copy whole folder to C:/text/media again.

You could find difference between your case and regular case

Regular case

Your case which has two rounds.

Regards,

D. Wu

Free Windows Admin Tool Kit Click here and download it now
April 26th, 2015 9:36pm

Hi balubeto,

Because this command create/scan Destination (C:/text/media) before/during copy process (copy all content to C:\text media), then when it scan the source folder last round, it found still have one folder (c:/text/media) to copy, so it will copy whole folder to C:/text/media again.

You could find difference between your case and regular case

Regular case

Your case which has two rounds.

Regards,

April 27th, 2015 4:47am

Hi balubeto,

Command is based on algorithm such like math and from my point of view, there is no way just using one command to finish a cycle copy/move, I think multiple command is necessary in that case, even in GUI we cannot do a cycle copy/move just by making one move (move C:\test to C\test). I hope I could find a command which can make series of action to get that goal but I failed.

Regards

D. Wu
Free Windows Admin Tool Kit Click here and download it now
April 29th, 2015 9:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics