473,395 Members | 1,639 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,395 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 1382
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.