Re: File change Notification
This worked fine for me. I had it monitor C:\Temp. When I renamed a file to FCN.txt, it gave a message, and when I saved the file, it also gave messages:
Code:
File: C:\Temp\New Text Document.txt renamed to C:\Temp\fcn.txt
File: C:\Temp\fcn.txt 4
File: C:\Temp\fcn.txt 4
File: C:\Temp\fcn.txt 4
File: C:\Temp\fcn.txt 4
File: C:\Temp\fcn.txt 4
File: C:\Temp\fcn.txt 4
File: C:\Temp\fcn.txt 4
File: C:\Temp\fcn.txt 4
Re: File change Notification
Where i am doing wrong still not able to traced.which event you had written this code.
Re: File change Notification
I copied your code and ran it and it worked. It only works for files named FNC.txt though.
Re: File change Notification
Where you are monitoring the out put in Output window or on the form. you need to run the form every time when you make changes to a file.Quite amazing still i am not able to trace it.
Re: File change Notification
if you message box it does it work?
i use a mod'ed version of this ... and my case works
Kris
Re: File change Notification
I was using the console window to monitor the app. I basically took your code, put it in a new console app and ran it.