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,659 of 10,840   
   PeterD to Don   
   Re: Detect file opened by Notepad   
   14 Sep 08 08:50:24   
   
   XPost: microsoft.public.vb.general.discussion, microsoft.public.vb   
   From: peter2@hipson.net   
      
   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?   
      
   >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