Announcement

Collapse
No announcement yet.

Make files premission Read Only

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Make files premission Read Only

    Dear sir's

    I have bottom with simple action to open AutoCAD file

    but i want to make it read only so that the end user won't be able to edit it

    i tried this as global function

    File.SetPermissions("AutoPlay\\Docs\\stations.dwg" , SID_EVERYBODY, SET_ACCESS, READ_PERMISSIONS, NO_INHERITANCE);

    but it don't gives me what i need

    can anone help me what is wrong with this function ?

    and what other solution i can use ?

    best regards


  • #2
    You most likely should use the File.SetAttributes() action instead, and set the ReadOnly attribute on the file.

    Ulrich

    Comment


    • #3
      Originally posted by Ulrich View Post
      You most likely should use the File.SetAttributes() action instead, and set the ReadOnly attribute on the file.

      Ulrich
      Thanks Sir

      Comment

      Working...
      X