Monitor a text file to see when it opens or closes...
-
I'd like to monitor a text file to see when an outside program changes the contents of it. Is there a simple way to do this??? Actually, the easiest way to do this for me might be to see when the it saves or closes.
-
I'd like to monitor a text file to see when an outside program changes the contents of it. Is there a simple way to do this??? Actually, the easiest way to do this for me might be to see when the it saves or closes.
The FileSystemWatcher[^] maybe what you need, especialy the NotifyFilter[^] property (NotifyFilters enumeration[^]).
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus) -
I'd like to monitor a text file to see when an outside program changes the contents of it. Is there a simple way to do this??? Actually, the easiest way to do this for me might be to see when the it saves or closes.
-
I'd like to monitor a text file to see when an outside program changes the contents of it. Is there a simple way to do this??? Actually, the easiest way to do this for me might be to see when the it saves or closes.
Good deal. thank you both. I'm trying to make a PDF buttonclick event register in my code, but apparently this is very hard to do... So i decided to make the buttonclick in the PDF open and change a document. Then my C# app will hopefully see it and respond...worth a try any way. Thanks again. jpc
-
Good deal. thank you both. I'm trying to make a PDF buttonclick event register in my code, but apparently this is very hard to do... So i decided to make the buttonclick in the PDF open and change a document. Then my C# app will hopefully see it and respond...worth a try any way. Thanks again. jpc
According to this thread[^] it is possible if you're using Acrobat (not reader) with a little Java.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)