Shared file attribute

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

    Shared file attribute

    Is there a way of checking whether a file has a shared file attribute. And
    then can you change it to unshared.
    I can't use my program to make a copy of a file because it produces an
    error.
    However if I set the attributes so it is not marked as shared on
    installation (Inno setup installer) the program can make a copy of it.


  • Dean Earley

    #2
    Re: Shared file attribute

    will_456 wrote:
    Is there a way of checking whether a file has a shared file attribute. And
    then can you change it to unshared.
    I can't use my program to make a copy of a file because it produces an
    error.
    However if I set the attributes so it is not marked as shared on
    installation (Inno setup installer) the program can make a copy of it.
    The "Shared attribute" is not an attribute on the file, it is a counter
    stored in the registry.
    This counter will have absolutely no bearing on whether you can access
    the file or not.

    Try using process explorer at the time it fails to see what has the file
    open and locked.

    --
    Dean Earley (dean.earley@ic ode.co.uk)
    i-Catcher Development Team

    iCode Systems

    Comment

    Working...