Solved

Robocopy files not having archive bit set

Posted on 2010-09-08
3
977 Views
Last Modified: 2013-11-09
I setting up a process to move/copy files off of a server with robocopy. Each day I copy files to a remote storage server. To easily and visually keep track of what files have been copied (I also write a log) I change the archive bit on the source files with the /M switch during the copy. Later I want to move the files that don't have the archive bit set to a different folder. Is there a switch or other way to have robocopy "see" the bit is not set and only move those files?
0
Comment
Question by:LMMS
3 Comments
 
LVL 3

Accepted Solution

by:
Marbleman earned 250 total points
ID: 33631588
Take a look at the /XA Option: /XA[A] could solve the problem because it is supposed to exclude all files with the Archive-Flag set...
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 33631617
According to this, the /a should do it:

http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx

Are you using 2008?
0
 

Author Closing Comment

by:LMMS
ID: 33664398
Ths /XA:A switch works. I overlooked it when looking at all the possible settings. Thanks
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

758 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

19 Experts available now in Live!

Get 1:1 Help Now