How to grayed 'Read only' in property of Explorer of Windows with VB?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raymond H.

    How to grayed 'Read only' in property of Explorer of Windows with VB?

    Hello,
    I'd like to be able to desabled the 'Read only' (and grayed this case)
    with vb codes. How to do this to protect a file againts deleting?
    r.h.


  • B

    #2
    Re: How to grayed 'Read only' in property of Explorer of Windowswith VB?


    Hi,

    Use: SetAttr "c:\myfile.txt" , vbReadOnly to change the properties of the
    file to read only mode. Remember it still can be deleted in expolorer,
    it only avoids the file from being edit.

    B.

    Raymond H. schreef:[color=blue]
    > Hello,
    > I'd like to be able to desabled the 'Read only' (and grayed this case)
    > with vb codes. How to do this to protect a file againts deleting?
    > r.h.
    >
    >[/color]

    Comment

    • Raymond H.

      #3
      Re: How to grayed 'Read only' in property of Explorer of Windows with VB?

      Hello,
      Thankyou for your help. But I know how to set attrib in vb. I only
      would like to know how to gray the box 'Read only' than we can seen via
      Windows Explorer.
      Have a good day.
      Raymond H.

      "B" <nospam@nospam. com> a écrit dans le message de news:
      iuVke.100525$0v 1.30979@amsnews 02.chello.com.. .[color=blue]
      >
      > Hi,
      >
      > Use: SetAttr "c:\myfile.txt" , vbReadOnly to change the properties of the
      > file to read only mode. Remember it still can be deleted in expolorer, it
      > only avoids the file from being edit.
      >
      > B.
      >
      > Raymond H. schreef:[color=green]
      >> Hello,
      >> I'd like to be able to desabled the 'Read only' (and grayed this
      >> case) with vb codes. How to do this to protect a file againts deleting?
      >> r.h.
      >>[/color][/color]

      Comment

      Working...