Patrice
9/10/2008 11:33:00 AM
I doubt this is possible. It would be similar to moving a file while reading
from the same file.
The best I can think of would be to make sure the directory is under a root
directory that can't be renamed. Or watching the drive would work but this
is likely not something you want to do...
IMO the reasonable answer would be :
- the application needs to be stopped (or paused), the name changed, the app
restarted
- you can do whatever you want under <location> while the app is running.
You can't change <location> itself... (i..e if
d:\somethingYouCanTchange\Watcher then you can rename the watcher directory
but not the containing directory).
Knowing the big picture could help (what kind of app is this ? etc...)
--
Patrice
"D2" <dhapola@yahoo.com> a écrit dans le message de groupe de discussion :
e7d8f30e-465d-4803-b315-a070ddf50b14@m36g2000hse.googlegroups.com...
> Hi,
>
> I am watching for file system events in a folder "D:\Watcher\Watch"
> folder which is working perfectly fine. However, this prevents user
> from renaming the parent folder (in this case "d:\watcher" folder).
> Now customer wants the ability that the user should be able to rename
> the parent folder. Does anyone has an idea how can this be achieved?
>
> cheers!
> d2