Connecting Tech Pros Worldwide Forums | Help | Site Map

Shared file attribute

will_456
Guest
 
Posts: n/a
#1: Feb 28 '07
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
Guest
 
Posts: n/a
#2: Feb 28 '07

re: Shared file attribute


will_456 wrote:
Quote:
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@icode.co.uk)
i-Catcher Development Team

iCode Systems
Closed Thread