Set file to Read-Only and back

Discussion in 'Questions (Windows Mobile)' started by RB Smissaert, Jan 16, 2009.

  1. RB Smissaert

    RB Smissaert Well-Known Member Licensed User

    Had a look at AGraham's FilesEx, but couldn't figure out from the help how to set a file to Read-Only and then back to normal, not Read-Only.
    Could somebody tell how that is done?

    RBS
     
  2. Cableguy

    Cableguy Expert Licensed User

    Use the getatributes method to get the file current atributes and use the same format, changing the atributes value, in the setatributes method...
    I also advise you to use a DoEvents keyword between to consecutives setatributes...
     
  3. RB Smissaert

    RB Smissaert Well-Known Member Licensed User

    Could you post the 2 lines of code? I got the general idea, but couldn't figure it out.

    RBS
     
  4. RB Smissaert

    RB Smissaert Well-Known Member Licensed User

    OK, I got it now.

    RBS
     
  5. RB Smissaert

    RB Smissaert Well-Known Member Licensed User

    :( Unfortunately, as noticed earlier, toggling the Read-Only flag on the device doesn't make my SQLite file go fast. It does when I do it on the desktop.
    At least I learned the Bitwise manipulation now.

    RBS
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice