Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8831875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:24:28+00:00 2026-06-14T08:24:28+00:00

I am learning about the file attribute enum and have a two questions which

  • 0

I am learning about the file attribute enum and have a two questions which I can’t find a concrete answer to (although I have my own opinion).

My application checks to see if the Archive flag has been set or not. During my testing, I create a .txt file on my desktop, and removed the flag to archive. I then opened the file, added a line of text and saved the file. The attribute Archive was re-set. This is logical and desirable.

My first question is, what is setting the flag, the program or the OS?

My second question is, should I ever be setting the flags or for the most part can I rely on the OS (assuming that the OS is the thing which sets the flags).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:24:29+00:00Added an answer on June 14, 2026 at 8:24 am

    You can control the archive file attribute flag using the ATTRIB command line or the underlying Windows API (e.g. allowing “your code” full control of the flag). However, when a file is modified the archive flag is set. That is not something you have to do in your application or code. The expected usage scenario is this:

    • The operating system will set the flag when a file is created or modified

    • The backup application (e.g. “your code”) will reset the flag when a file has been backed up

    However, relying on the archive flag for backup can be problematic because multiple independent backup applications may be using the flag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning JPA. I read about persistence.xml file. It can contain more that
I'm learning some file functions and hence have a doubt. I'm curious about why
While learning about python, I came upon this code, which takes a text file,
I am learning about build.xml file for ant build. I have a simple Hello
I'm just now learning about file tasks in Rake. I have 100s of javascript
I just started learning about JSF. In JSP file we can use <%= request.getAttribute(JsData)%>
I'm learning about pointers. Given this code: FILE* from = fopen("in.txt", "r"); FILE* to
I have been learning about Delegation and Data Sources for iOS programming and need
I'm learning C/C++ right now and I am reading about file operations. Suppose a
I have been learning about how to set up Tomcat's connection pool through this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.