What's new

Robocopy /move problem

balubeto

Member
Member
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
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
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
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

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top