Solved

Question about robocopy MOVE vs. MOV switches

Posted on 2008-10-24
1
1,789 Views
Last Modified: 2012-05-05
Here is the folder structure in questions:

c:\events\subfolder1
c:\events\subfolder2
c:\events\subfolder3

c:\EventsPre2008

I'm using robocopy to move files from the c:\events folder, and all of its subfolders, that have not been accessed since 1-1-2008 into the c:\EventsPre2008 folder.

Here is the command: robocopy c:\events c:\EventsPre2008 /E /Z /R:0 /MOVE /MINLAD:20080101

I'm concerned about it moving directories too (with the MOVE switch) instead of just moving files (with the MOV switch).

I'm considering using the MOV switch instead of the MOVE switch and here is why: Will it move directories (and then delete them from the source) only if all the files in that directory are moved? My concern is that it might move directories (and delete them from the source) even if only some files from a particular directory are moved. I'm sure I'm missing something here. Thanks!
0
Comment
Question by:WineGeek
1 Comment
 
LVL 63

Accepted Solution

by:
SysExpert earned 500 total points
ID: 22805895
1) make sure you have the latest robocopy version

2)  run some tests and see if it works like you want

unfortunately, all software have bugs, and you need to test it under conditions similar to what real world production will be like to insure that it works like  you think it will.


I hope this helps !
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now