Robocopy /move problem

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
balubeto
Posts: 136
Joined: 08 Dec 2011 12:14

Robocopy /move problem

#1 Post by balubeto » 23 Apr 2015 03:51

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:

Code: Select all

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


I have tried with the command

Code: Select all

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

Bye

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Robocopy /move problem

#2 Post by Squashman » 23 Apr 2015 06:17

What are the very first two options in the ROBOCOPY help file.

Post Reply