Results 1 to 7 of 7
  1. #1
    New Lounger
    Join Date
    Jul 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Archive attribute of folders

    How can the archive attribute of files and folders be used? If I tick it, is there a way to archive all those files/folders?

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Archive attribute of folders

    The archive attribute of files was invented so that backup programs could determine whether a file had been changed since the last time it was backed up. The OS marks the archive bit ("archive me") when a file is changed, and the backup program clears it after the file has been archived. Whether this attribute has any other, more modern meaning or use, I have no idea.

  3. #3
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Archive attribute of folders

    Jefferson

    Excellent summary. I'm not aware of any different use...

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  4. #4
    5 Star Lounger
    Join Date
    May 2003
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    629
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Archive attribute of folders

    To set the Archive bit, you can use the command ATTRIB [filespec] +R to turn on the bit , -R to turn off.


    filespec == word.doc , *.exe, *.* whatever files you need.

    Looks like you can get the same thing somewhat inconveniently from a particular file's properties page.

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Archive attribute of folders

    +R and -R will set and reset the Read-Only attribute. You use Attrib +A and -A to set and reset the Archive attribute.

    StuartR

  6. #6
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: Archive attribute of folders

    Hi Jim,

    I believe the correct syntax is ATTRIB [+A] [+R] [+S] [+H] [-A-] [R] [-S-] [H] [filespec]. ATTRIB [filespec] will tell you what all the atribute (ARSH) bits are currently set to.
    A=Archive
    R=Read Only
    S=System
    H=Hidden

    Cheers
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  7. #7
    5 Star Lounger
    Join Date
    May 2003
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    629
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Archive attribute of folders

    Oops. My bust. +A it is.

    Oh, and one simple utility that can read and use the archive bit is XCOPY. The /A (double-check, Yes, /a) switch will only copy files with the archive bit set. There's a simple backup plan right there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •