home bbs files messages ]

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,660 of 10,840   
   Don to PeterD   
   Re: Detect file opened by Notepad   
   14 Sep 08 15:19:34   
   
   XPost: microsoft.public.vb.general.discussion, microsoft.public.vb   
   From: dsarvas@yahoo.com   
      
   On Sun, 14 Sep 2008 08:50:24 -0400, PeterD  wrote:   
      
   >On Sat, 13 Sep 2008 22:17:45 GMT, dsarvas@yahoo.com (Don) wrote:   
   >   
   >>On Sat, 13 Sep 2008 17:53:38 -0400, PeterD  wrote:   
   >>   
   >>>That old 'between a rock and a hard place' comes to mind. Consider   
   >>>this, can you perhaps run through the windows of open applications   
   >>>looking for Notepad, and seeing what file that window has open? That   
   >>>*might* work, but would be Notepad specific. I'm sure there are other   
   >>>programs that may present the same problems, too, however.   
   >>   
   >>That actually has possibilties.  I do know how to enumerate through   
   >>all open windows and even target a Notepad window and it's caption,   
   >>but I would have to do so by accessing all workstations on the network   
   >>until I find one that is running that file via Notepad.   
   >   
   >Ouch... Yea, you're screwed. Maybe permissions is an answer. Only your   
   >application has write permissions for the file?   
      
   Considering that, also.  Might keep all files in folders with specific   
   rights made available only if they access the files through my app or   
   make the folders invisible except via the app.   
      
   I think the answer is for my app to detect that they are attempting to   
   open a file with Notepad and create a detour, causing the file to open   
   in my app or an app I know will lock the file.  My app already does   
   that, but I didn't want to have to do that.   
      
   >   
   >>Seems like   
   >>that would be the challenge of my lifetime but I might just try   
   >>researching that one.   
   >>Don   
      
   --- 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