| Re: Shared file attribute -
06-04-2007, 10:35 AM
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 (EMAIL REMOVED)
i-Catcher Development Team
iCode Systems |