473,503 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Filesystemwatcher created event

I am trying to find out exactly when this even fires when a file is
"created" in a directory being monitored. That is, for a large file, that
takes several minutes to upload, will the created event fire as soon as the
file starts loading, or only when the file has been completely uploaded.

I can't find any documentation to this at MSDN.

Thanks,
Ripley
Sep 27 '06 #1
2 1705
Nevermind - a google search soon turned up this page:
http://bloggingabout.net/blogs/jschr.../06/12886.aspx
In it, the author explains that the created event is fired as soon as the
first byte is written. He then shows a way to handle this.
:)

"Ripley" <ri****@ihatespam.comwrote in message
news:eO**************@TK2MSFTNGP04.phx.gbl...
>I am trying to find out exactly when this even fires when a file is
"created" in a directory being monitored. That is, for a large file, that
takes several minutes to upload, will the created event fire as soon as the
file starts loading, or only when the file has been completely uploaded.

I can't find any documentation to this at MSDN.

Thanks,
Ripley

Sep 27 '06 #2
On Wed, 27 Sep 2006 16:38:08 -0700, "Ripley" <ri****@ihatespam.comwrote:
>Nevermind - a google search soon turned up this page:
http://bloggingabout.net/blogs/jschr.../06/12886.aspx
In it, the author explains that the created event is fired as soon as the
first byte is written. He then shows a way to handle this.
:)

"Ripley" <ri****@ihatespam.comwrote in message
news:eO**************@TK2MSFTNGP04.phx.gbl...
>>I am trying to find out exactly when this even fires when a file is
"created" in a directory being monitored. That is, for a large file, that
takes several minutes to upload, will the created event fire as soon as the
file starts loading, or only when the file has been completely uploaded.

I can't find any documentation to this at MSDN.

Thanks,
Ripley
Thanks, I was wondering about that myself.
Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Sep 28 '06 #3

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

Similar topics

4
9063
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...
1
3302
by: Troy Murphy | last post by:
How do I prevent the FileSystemWatcher event to keep firing while the file is being created? When copying a file to the watched folder, the event fires a dozen or more times! Also, the...
7
4093
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...
1
4527
by: John Lee | last post by:
Hi, I developed a filewatcher service to monitor file creation on a network drive - 90% time it works fine and from time to time I found out that the newly created file on that network drive...
3
14220
by: Stampede | last post by:
Hi, I want to use the FileSystemWatcher in a Windows Service. I read an article, where the author created the FileSystemWatcher object in a seperate thread and when the event is fired, he started...
20
4415
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...
9
7095
by: Tushar | last post by:
Followup-To: microsoft.public.dotnet.general Does anyone know when is this event raised, is it: 1) When the file is created but may not have been closed 2) When the file is created AND it has...
1
10368
by: Abel Chan | last post by:
Hi there, I was trying to write a simple NT services using .NET 2.0 and fileSystemWatcher control. The goal is to poll documents from a watch directory and ftp them to a remote web site. I...
1
2553
by: Mahita | last post by:
Hi, I am coding a Windows Service in which I am using the "OnCreated" event of FileSystemWatcher class to do some processing when a new file is created in a particular folder. However I have...
2
3469
by: John Talli | last post by:
System.IO.FileSystemWatcher When a user copies and pastes a file from one directory to a directory that is monitored by the FileSystemWatcher, the FileSystemWatcher executes twice, once for a...
0
7076
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
7274
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7323
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...
1
6984
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
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.