XPost: microsoft.public.vb.general.discussion, microsoft.public.vb   
   From: dsarvas@yahoo.com   
      
   On Sat, 13 Sep 2008 21:01:58 +0000 (UTC), DanS   
    wrote:   
      
   >dsarvas@yahoo.com (Don) wrote in news:48cc1f68.793671@news.west.cox.net:   
   >   
   >> Thanks for the response, but I need something that detects that the   
   >> file is currently open.   
   >   
   >1   
   >   
   >But the file is NOT currently open. It is opened only for milliseconds   
   >while Notepad reads it then is closed again immediately.   
      
   Yes, that's what was explained in the first response. But I was   
   already aware that the contents of Notepad are read into memory and   
   the file closed. I should have worded it differently.   
      
   Seems odd that there isn't a way to prevent the problem of multiple   
   users working on the same file and creating the conflicts that are   
   occuring other than to use another app to do so.   
      
   Most all apps we use to retrieve various files will either lock the   
   file or using FileIsOpen will detect that the file is in use. I'm   
   surprised that Notepad works the way it does and opens up this   
   possibilty that several people can open and alter the same file   
   simultaneously not aware of what all others are doing at that given   
   moment. I'm certain they are not aware this is happening so I'll have   
   to advise them this is occurring.   
      
   I plan to put in my app a detour that if the user selects a file that   
   launches Notepad by default, another app will open instead or I will   
   use the Rich Textbox or other means to display the text file and lock   
   the file to prevent others from accessing it. Didn't want to do that,   
   but I guess I have no choice but to see that they avoid using Notepad.   
      
   Don   
   >   
   >> Since the file is immediately closed after   
   >> reading the contents as you described, it sounds like what I'm asking   
   >> isn't possible.   
   >   
   >That is correct.   
   >   
   >> I'm trying to prevent users from having the file open   
   >> at the same time and making changes not aware that two or more people   
   >> are making changes that might conflict. Every method I can think of   
   >> either won't detect the file is open   
   >   
   >Goto 1   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|