Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 28th, 2007, 11:25 AM
will_456
Guest
 
Posts: n/a
Default 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.


  #2  
Old February 28th, 2007, 11:45 AM
Dean Earley
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles