Announcement

Collapse
No announcement yet.

Archive flag

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Archive flag

    Greetings,
    I have windows 2003 server standard installed on a machine used as a fileserver. I have some legacy software that pukes when the archive flag is set on folders. Is there a way to perminently "uncheck" the archive flag on some folders and prevent the system from "re-checking" it when it reboots ?

    thanks.

  • #2
    Re: Archive flag

    um, that has got to be one of the oldest attributes around, but if you really need to clear them on startup, or periodically, use the following in a batch file.
    Code:
    attrib -A c:\example\*
    "...if I turn out to be particularly clear, you've probably misunderstood what I've said” - Alan Greenspan

    Comment


    • #3
      Re: Archive flag

      Since when do folders have the Archive flag??? ATTRIB is only for files.
      |
      +-- JDMils
      |
      +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
      |

      Comment


      • #4
        Re: Archive flag

        Originally posted by JDMils View Post
        Since when do folders have the Archive flag??? ATTRIB is only for files.
        Isn't that what this is for?????
        Attached Files

        Comment


        • #5
          Re: Archive flag

          True. Sorry.
          |
          +-- JDMils
          |
          +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
          |

          Comment


          • #6
            Re: Archive flag

            Originally posted by Lior_S View Post
            um, that has got to be one of the oldest attributes around, but if you really need to clear them on startup, or periodically, use the following in a batch file.
            Code:
            attrib -A c:\example\*
            You need to include the /D and /S flags to affect folders:

            Displays or changes file attributes.

            ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename]
            [/S [/D]]

            + Sets an attribute.
            - Clears an attribute.
            R Read-only file attribute.
            A Archive file attribute.
            S System file attribute.
            H Hidden file attribute.
            [drive:][path][filename]
            Specifies a file or files for attrib to process.
            /S Processes matching files in the current folder
            and all subfolders.
            /D Processes folders as well.
            Interestingly, I'm having troubles getting an archive attribute set on a folder in 2003 or XP through normal means. Doing an attrib +a /s /d will set it but creating, renaming, changing contents, security, etc. does not set the A flag.
            Last edited by rvalstar; 3rd June 2008, 19:37.
            Cheers,

            Rick

            ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

            © 2006-2099 R Valstar. This post is offered "as is" for discussion purposes only with no express or implied warranty of any kind including, but not limited to, correctness or fitness for use. Nothing herein shall be construed as advice. Attempting any activity based on information in this post is done at your own risk.

            Comment

            Working...
            X