Jump to content

Check for archive bit for backup

Recommended Posts

I have looked around for some commands I can use to perform a copy based on the archive bit set to "A" similar to the DOS command 'Robocopy' functionality. The combination of commands would have to wind through all files in a folder and all the sub folders to see if the files have been "touched" and then copy them to a backup drive, then set the archive bit to "N". I can see the AutoIt commands to test for the archive bit "FileGetattrib" and "FileSetAttrib" for a file but am not sure how to wind through all the files and do the copy.

Can someone lead me by the nose to accomplish this?

Thanks for any help you can provide.


Yah, I'm an old fart, but what the hey, still enjoy keeping busy

Link to post
Share on other sites

take a look at filegetattrib and stringinstr.


Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver: - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...