Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Robocopy /MOV command copying but not deleting from source directory

08 May 2013   #1
ajishb03

windows 7 Home premium 64 bit
 
 
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 System SpecsSystem Spec
.
08 May 2013   #2
Kari

Microsoft Community Contributor Award Recipient

 

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 System SpecsSystem Spec
08 May 2013   #3
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Quote   Quote: Originally Posted by ajishb03 View Post
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 System SpecsSystem Spec
.

08 May 2013   #4
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by DavidW7ncus View Post
Quote   Quote: Originally Posted by ajishb03 View Post
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 System SpecsSystem Spec
08 May 2013   #5
ajishb03

windows 7 Home premium 64 bit
 
 

Quote   Quote: Originally Posted by DavidW7ncus View Post
Quote   Quote: Originally Posted by ajishb03 View Post
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 System SpecsSystem Spec
08 May 2013   #6
ajishb03

windows 7 Home premium 64 bit
 
 

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 Images
Robocopy /MOV command copying but not deleting from source directory-34.jpg 
My System SpecsSystem Spec
08 May 2013   #7
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

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 System SpecsSystem Spec
08 May 2013   #8
ajishb03

windows 7 Home premium 64 bit
 
 

Quote   Quote: Originally Posted by DavidW7ncus View Post
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 System SpecsSystem Spec
08 May 2013   #9
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

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 System SpecsSystem Spec
08 May 2013   #10
ajishb03

windows 7 Home premium 64 bit
 
 

Quote   Quote: Originally Posted by DavidW7ncus View Post
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 System SpecsSystem Spec
Reply

 Robocopy /MOV command copying but not deleting from source directory




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Robocopy not copying My Document files
Hi, I just started using Robocopy to backup my files to my JBOD recently and I noticed that it does not copy anything in My Document folder. Here is the result log for Robocopy regarding the backup. Even though it says that it copied 22831 files the destination folder says it has not been modified...
Backup and Restore
Robocopy copying folders from the wrong place
I've set up a back up batch file to copy my Documents, Pictures, Music, and Videos folders from my computer to an external hard drive. However, while running the Documents backup, it seems to find, the pictures, music, and videos folders all inside the documents folders labelled "My Music", etc. ...
General Discussion
Robocopy? Copy Directory Structure 1 level
I want copy a list of folders (a few hundred) to a new location. I tried using robocopy but can only get it to either copy the selected folder or all folders with subfolders. What I want is to only copy one level of folders and not the subfolders within. Example: C: Drive (the source) ...
General Discussion
Robocopy - Access denied Error 5 Real Directory
Hello folks, I know similar questions have been asked but I "might" have a unique one. What I have been trying to do is to copy the "C:\Users", "C:\Program Files", & "C:\Program Files (x86)" to another clean hard drive "D:\". I'm doing this to make more room for the OS in the C: drive while...
Backup and Restore
Deleting a directory structure without deleting the name of the root
HI With the command prompt of Windows 7 SP1, how do I delete a directory structure with their files without deleting the name of the root directory? THANKS BYE
General Discussion
Robocopy - Copying Folders With Spaces in The Title.
Hey guys, This may sound like a really silly question, but I'm just getting to grips with using Robocopy. How do you copy folders with spaces in the title? E.g: T:\Admin Tools I keep getting an error. Any help would be great thanks.
Backup and Restore


Our Sites

Site Links

About Us

Find 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 01:19.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App