Solved

Robocopy files not having archive bit set

Posted on 2010-09-08
3
990 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 update problem: OneDrive issue 14 54
Add Log to powershell Script 14 30
Backup and restore 6 41
The different types of Windows 10 7 40
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 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