Connecting Tech Pros Worldwide Help | Site Map

Shared file attribute

  #1  
Old February 28th, 2007, 11:25 AM
will_456
Guest
 
Posts: n/a
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.


  #2  
Old February 28th, 2007, 11:45 AM
Dean Earley
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am trying to convert a file from C# to VB.NET - need help. Learner answers 5 April 28th, 2006 07:45 PM
Help with Shared AssemblyInfo.cs and global attributes Fred Iannon answers 1 November 22nd, 2005 04:49 PM
Help with Shared AssemblyInfo.cs and global attributes Fred Iannon answers 1 July 21st, 2005 08:52 PM
automatic static types (metaclass), attribute-order extraction =python instead of XML-likes - and some RequestsForEnhancements svilen answers 7 July 18th, 2005 10:36 AM