Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FILE_ATTRIBUTE_ ARCHIVE
#1
how do you set the "archive" attribute to don't archive?

im building a backup macro and need to unset it so it doesnt take 10 to do the backup ;o)


thanks.
#2
Code:
Copy      Help
str s.expandpath("$desktop$\test.txt")
int a=GetFileAttributes(s)
if(a=-1) out "error"
else SetFileAttributes(s a~FILE_ATTRIBUTE_ARCHIVE) ;;use | to add, ~ to remove
#3
works great!
thanks


Forum Jump:


Users browsing this thread: 2 Guest(s)