Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 10,437 of 10,840    |
|    Dean Earley to All    |
|    Re: Shared file attribute    |
|    28 Feb 07 11:38:14    |
      From: dean.earley@icode.co.uk              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@icode.co.uk)       i-Catcher Development Team              iCode Systems              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca