• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Robocopy /move problem


balubeto

Member
Member
Posts
173
#1
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:
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:
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
 

My Computer

System One

  • OS
    Windows 8
Posts
156
#2
Hello balubeto,

You can trythis:
First, create a new folder named "Test" under "C:\Test\Media", then enter the following code:
robocopy c:\Test c:\Test\Media\Test /move

If you want to move the whole "Test" directory, you cannot do it because the location you want is still under "Test" directory.
 

My Computer

System One

  • OS
    Windows 8.1 Pro 64-bit, Windows 10 64-bit
    Computer type
    PC/Desktop
Posts
156
#4
Hello,
You can't move the "Test" directory itself because you want to move it inside the current directory.
If you can do this, then the result will be the same as before.
Thank.
 

My Computer

System One

  • OS
    Windows 8.1 Pro 64-bit, Windows 10 64-bit
    Computer type
    PC/Desktop

balubeto

Member
Member
Posts
173
#5
I tried

Code:
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
 

My Computer

System One

  • OS
    Windows 8