Robocopy /MOV command copying but not deleting from source directory

Page 1 of 2 12 LastLast

  1. Posts : 32
    windows 7 Home premium 64 bit
       #1

    Robocopy /MOV command copying but not deleting from source directory


    Hi All,

    I have one folder A and have another folder B in the same drive E: I need to move all the content from folder A which are more than 2 years old to folder B. Hence when I ran the robocopy it just copied and I lost all disk space in drive E.

    My question is even though I used /MOV command why it is not copied and deleted from the source?

    robocopy E:/A E:/B /e /MOV /MINAGE:730

    Please suggest..
      My Computer


  2. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #2

    I created folders Test and Test2 on drive E:, copied some files over and under two years old and tested with command
    Code:
    robocopy E:\Test E:\Test2 /e /mov /minage:730
    Works perfect. All files older than 730 are moved, copied to destination and deleted from source. I can only think of two possible causes for your issue:
    1. System considers files to be newer than 730 days old
    2. A syntax error in your command

    Please run the command, take screenshot of the last part of summary (under the dotted line, highlighted in screenshot below) and post it here.

    Robocopy /MOV command copying but not deleting from source directory-robocopy_1.png

    Kari
      My Computer


  3. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #3

    ajishb03 said:
    Hence when I ran the robocopy it just copied and I lost all disk space in drive E.
    Maybe there was an error because the drive is full, so the command couldn't complete successfully ?
      My Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #4

    DavidW7ncus said:
    ajishb03 said:
    Hence when I ran the robocopy it just copied and I lost all disk space in drive E.
    Maybe there was an error because the drive is full, so the command couldn't complete successfully ?
    Very clever, I missed that!
      My Computer


  5. Posts : 32
    windows 7 Home premium 64 bit
    Thread Starter
       #5

    DavidW7ncus said:
    ajishb03 said:
    Hence when I ran the robocopy it just copied and I lost all disk space in drive E.
    Maybe there was an error because the drive is full, so the command couldn't complete successfully ?
    Thanks for the reply both of you..

    Well the drive had 46GB free but the files I wanted to move was more than 46GB. However it should not effect I guess because it is not only copying but also deleting from the same drive?

    Thanks
      My Computer


  6. Posts : 32
    windows 7 Home premium 64 bit
    Thread Starter
       #6

    I have tried again but same result. It is just doing the copy and not deleting. I am using wind server 2008 R2. Does that make any difference?
    Attached Thumbnails Attached Thumbnails Robocopy /MOV command copying but not deleting from source directory-34.jpg  
      My Computer


  7. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #7

    It's not clear to me what you are doing now...
    How much, if any, free space is on the E: drive?
    Is there enough free space on E:, to allow a "copy file"?
    If E: is full or does not have enough extra free space to use, that can cause errors.
    It looks like may you have a permissions issue because your screen print shows "Access is denied".

    Can you make sure you have enough free space and try to copy and delete one file to see if that works?
    IMHO a MOVE is more risky than a "COPY and manual DELETE"...
    If a MOVE fails, you could lose the data...

    I don't use wind server 2008 R2, so I have no idea if that makes a difference...
      My Computer


  8. Posts : 32
    windows 7 Home premium 64 bit
    Thread Starter
       #8

    DavidW7ncus said:
    It's not clear to me what you are doing now...
    How much, if any, free space is on the E: drive?
    Is there enough free space on E:, to allow a "copy file"?
    If E: is full or does not have enough extra free space to use, that can cause errors.
    It looks like may you have a permissions issue because your screen print shows "Access is denied".

    Can you make sure you have enough free space and try to copy and delete one file to see if that works?
    IMHO a MOVE is more risky than a "COPY and manual DELETE"...
    If a MOVE fails, you could lose the data...

    I don't use wind server 2008 R2, so I have no idea if that makes a difference...
    I did not get any errors. I can access all files but dont know why that message came up. Also I have tried moving 5 gb files and my disk space was 46gb. Even then it is copying all files but not deleting it from the source.
      My Computer


  9. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #9

    OK.
    With that answer I think you have some type of permissions problem because of the "Access is denied" error.
    I'm no security (or any) expert, so my advice is wait for someone more knowledgeable to help with this.

    It may be as simple as taking ownership of the source folder and all files...
    But it's best to wait for someone who can confirm that, or give a better/definite answer...
      My Computer


  10. Posts : 32
    windows 7 Home premium 64 bit
    Thread Starter
       #10

    DavidW7ncus said:
    OK.
    With that answer I think you have some type of permissions problem because of the "Access is denied" error.
    I'm no security (or any) expert, so my advice is wait for someone more knowledgeable to help with this.

    It may be as simple as taking ownership of the source folder and all files...
    But it's best to wait for someone who can confirm that, or give a better/definite answer...
    sure.. why not... I guess in order to delete the files I need folder permission but could copy any how.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:46.
Find Us