473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

frustating FileSystemWatcher problem

Is there any way to to get a list of file names that were deleted as a
result of deleting their parent directory??
Cheers
Nov 17 '05 #1
6 1381
it has a property for looking changes in theirs subdirs...

"Justin Time" wrote:
Is there any way to to get a list of file names that were deleted as a
result of deleting their parent directory??
Cheers

Nov 17 '05 #2
it has a property for looking changes in theirs subdirs...

"Justin Time" wrote:
Is there any way to to get a list of file names that were deleted as a
result of deleting their parent directory??
Cheers

Nov 17 '05 #3
IncludeSubdirectories? This doesn't help.

The problem is that when deleting a directory, rather than getting one event
for the directory and one event for each file it contained, you simply get
the directory deleted event. Understandable perhaps.

Unfortunately as the directory is no longer of the file system by the time
the event is raised, it is not possible to query which files where in the
directory!

Hence the problem.


"Rothariger" <Ro********@msn.com> wrote in message
news:92**********************************@microsof t.com...
it has a property for looking changes in theirs subdirs...

"Justin Time" wrote:
Is there any way to to get a list of file names that were deleted as a
result of deleting their parent directory??
Cheers

Nov 17 '05 #4
IncludeSubdirectories? This doesn't help.

The problem is that when deleting a directory, rather than getting one event
for the directory and one event for each file it contained, you simply get
the directory deleted event. Understandable perhaps.

Unfortunately as the directory is no longer of the file system by the time
the event is raised, it is not possible to query which files where in the
directory!

Hence the problem.


"Rothariger" <Ro********@msn.com> wrote in message
news:92**********************************@microsof t.com...
it has a property for looking changes in theirs subdirs...

"Justin Time" wrote:
Is there any way to to get a list of file names that were deleted as a
result of deleting their parent directory??
Cheers

Nov 17 '05 #5
aaaa... ok, i never try that...
--
Salute by the First Time!
"Justin Time" wrote:
IncludeSubdirectories? This doesn't help.

The problem is that when deleting a directory, rather than getting one event
for the directory and one event for each file it contained, you simply get
the directory deleted event. Understandable perhaps.

Unfortunately as the directory is no longer of the file system by the time
the event is raised, it is not possible to query which files where in the
directory!

Hence the problem.


"Rothariger" <Ro********@msn.com> wrote in message
news:92**********************************@microsof t.com...
it has a property for looking changes in theirs subdirs...

"Justin Time" wrote:
Is there any way to to get a list of file names that were deleted as a
result of deleting their parent directory??
Cheers


Nov 17 '05 #6
aaaa... ok, i never try that...
--
Salute by the First Time!
"Justin Time" wrote:
IncludeSubdirectories? This doesn't help.

The problem is that when deleting a directory, rather than getting one event
for the directory and one event for each file it contained, you simply get
the directory deleted event. Understandable perhaps.

Unfortunately as the directory is no longer of the file system by the time
the event is raised, it is not possible to query which files where in the
directory!

Hence the problem.


"Rothariger" <Ro********@msn.com> wrote in message
news:92**********************************@microsof t.com...
it has a property for looking changes in theirs subdirs...

"Justin Time" wrote:
Is there any way to to get a list of file names that were deleted as a
result of deleting their parent directory??
Cheers


Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Josh Usovsky | last post by:
I'm setting up a watched folder using FileSystemWatcher. When I drop a small file into the watched folder, I can respond to a .Created event and process the file with other code. However, if I try...
2
by: Paul | last post by:
Hi, I've been developing an application in VB.NET that uses the FileSystemWatcher and a popup notification in order to tell me when files have been downloaded. The FileSystemWatcher code in...
7
by: Allen Anderson | last post by:
I'm trying to figure out a way to catch when a file has been written to a directory. I currently have it where I can catch when the file begins writing, but this isn't helpful as I need to know...
13
by: David | last post by:
I have been working on trying to write a directory watcher service. One of the requirments is that it be able to watch multiple directories, not sub directories of one parent directory, but just...
3
by: Stampede | last post by:
Hi, I write an application which waits for incomming files in a specified directory. I thought, that using the FileSystemWatcher would be the best, as it does exactly what I need. But now I have...
20
by: J-T | last post by:
We are working on an asp.net application which is a 3-tier application.I was aksed to create a component which monitors a folder and gets the file and pass them to a class library in our business...
2
by: kmcnet | last post by:
Hello Everyone and thanks for your help in advance. I have been battling a problem for nearly a month with the FileSystemWatcher component. Basically, what I am trying to do it to monitor three...
2
by: Rajani | last post by:
Hi friends, I am new to dotnet. I created one page(index.aspx). I have written some code which was explained in msdn (displaying all controls clientID in the page). It executed fine. Later i...
5
by: =?Utf-8?B?Sm9obiBT?= | last post by:
I am trying to find out if there is a way to tell if there is already a filesystemwatcher (created by a webservice) monitoring a folder. I have a webservice that creates a filesystemwatcher,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.