FileSystemWatcher Folder Rename
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Hi,
We are using FileSystemWatcher class in a windows service to monitor a
directory "d:\abc". This path is configured in a config file. When the
service is running and FSW is watching this directory, user is able to
open up Windows Explorer and rename d:\abc to d:\xyz.
The problem here is, FSW doesnt fire any event for this hence my
program doesnt know that the monitored folder has been renamed. Next
time the service is started, it reads the path from config file and
exception is thrown as the folder doesnt exist (since d:\abc has been
renamed to d:\xyz). Is there any way by which I can come to know that
the monitored folder has been renamed??
thanks,
dapi
.
Relevant Pages
- Re: 1400x1050 on Intel i852GM?
... > | EndSection ... > Here's the monitor section from XFree86.0.log. ... I see that Slackware's default config file has ... So I tried giving in an explicit Modeline for my monitor ... (comp.os.linux.x) - Re: Monitor Squeal
... > Floyd, I agree it has nothing to do with the OS but the fact remains ... The problem is almost certainly with X's config file. ... what reasons) or the Hsync and Vsync ranges you entered for your monitor ... video-card-specific X server, you're limited by the Hsync and Vsync ... (comp.os.linux.hardware) - Re: eth1 instead of wlan0
... >> M Hasse ... > backup copy of the current config file, and rename it, perhaps even move ... > YaST to see if Yast recognizes the device as wlan0 instead of eth0 ... (alt.os.linux.suse) - Re: How to Monitor the uploading a file using java
... It can then rename the finished file to the final destination where your application detects it and can safely assume that it is complete. ... If the client doesn't have the ability to rename the file, then upload another empty file with a different extension as an indicator that the upload task is now complete. ... This will be the file you want to monitor. ... If none of the above options are feasible, then you would have no option but to monitor the size of the file, and determine an acceptable span of time where if the size doesn't change, then a file uploaded event is triggered. ... (comp.lang.java.programmer) - Nvidia driver install help for two monitors on Linux X11 Xinerama Gnome KDE XF86Config xorg.conf Man
... working on my Linux X11 Gnome / KDE Mandrake 10.1 setup. ... you need the Nvidia driver. ... Below when I refer to config file, ... both monitors look like one big virtual monitor, ... (comp.os.linux.x) |
|