<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Multiple Events Fired for File System Watcher Event</title>
	<atom:link href="http://goneale.com/2009/05/29/multiple-events-fired-for-filesystemwatcher-event/feed/" rel="self" type="application/rss+xml" />
	<link>http://goneale.com/2009/05/29/multiple-events-fired-for-filesystemwatcher-event/</link>
	<description>Graham O&#039;Neale – Deep In .NET Development: ASP.NET, MVC, jQuery, WPF, WCF, Silverlight</description>
	<lastBuildDate>Wed, 28 Sep 2011 23:00:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Ahammed</title>
		<link>http://goneale.com/2009/05/29/multiple-events-fired-for-filesystemwatcher-event/comment-page-1/#comment-694</link>
		<dc:creator>Ahammed</dc:creator>
		<pubDate>Mon, 06 Jul 2009 04:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=649#comment-694</guid>
		<description>try
            {
                if (e.ChangeType==WatcherChangeTypes.Changed)
                {
                    using (StreamWriter sw = new StreamWriter(@&quot;C:\WINDOWS\Temp\log.txt&quot;, true))
                    {
                        string message = &quot;File &quot; + e.FullPath + &quot; Has been &quot; + e.ChangeType + &quot; on &quot; + System.DateTime.Now;
                        sw.WriteLine(message);
                        watcher.EnableRaisingEvents = false;                        
                    } 
                }

                
            }

hope this would help you guys to solve the issue</description>
		<content:encoded><![CDATA[<p>try<br />
            {<br />
                if (e.ChangeType==WatcherChangeTypes.Changed)<br />
                {<br />
                    using (StreamWriter sw = new StreamWriter(@&#8221;C:\WINDOWS\Temp\log.txt&#8221;, true))<br />
                    {<br />
                        string message = &#8220;File &#8221; + e.FullPath + &#8221; Has been &#8221; + e.ChangeType + &#8221; on &#8221; + System.DateTime.Now;<br />
                        sw.WriteLine(message);<br />
                        watcher.EnableRaisingEvents = false;<br />
                    }<br />
                }</p>
<p>            }</p>
<p>hope this would help you guys to solve the issue</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shibanee</title>
		<link>http://goneale.com/2009/05/29/multiple-events-fired-for-filesystemwatcher-event/comment-page-1/#comment-601</link>
		<dc:creator>Shibanee</dc:creator>
		<pubDate>Tue, 30 Jun 2009 11:27:51 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=649#comment-601</guid>
		<description>Could you pl explain how to avoid this multiple events ?</description>
		<content:encoded><![CDATA[<p>Could you pl explain how to avoid this multiple events ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vick</title>
		<link>http://goneale.com/2009/05/29/multiple-events-fired-for-filesystemwatcher-event/comment-page-1/#comment-279</link>
		<dc:creator>Vick</dc:creator>
		<pubDate>Thu, 11 Jun 2009 10:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=649#comment-279</guid>
		<description>Is there any work around this problem. I am watching a directory and if some body copied a excel file to it, I am loading that data to DB. Multiple event generation is screwing up the whole thing.... :sad:</description>
		<content:encoded><![CDATA[<p>Is there any work around this problem. I am watching a directory and if some body copied a excel file to it, I am loading that data to DB. Multiple event generation is screwing up the whole thing&#8230;. <img src='http://goneale.com/wp-includes/images/smilies/icon_sad.gif' alt=':sad:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham O&#039;Neale</title>
		<link>http://goneale.com/2009/05/29/multiple-events-fired-for-filesystemwatcher-event/comment-page-1/#comment-206</link>
		<dc:creator>Graham O&#039;Neale</dc:creator>
		<pubDate>Fri, 29 May 2009 04:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=649#comment-206</guid>
		<description>Totally weird.
It&#039;s amazing what happens around you at the same time in the world. :)</description>
		<content:encoded><![CDATA[<p>Totally weird.<br />
It&#8217;s amazing what happens around you at the same time in the world. <img src='http://goneale.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Genisio</title>
		<link>http://goneale.com/2009/05/29/multiple-events-fired-for-filesystemwatcher-event/comment-page-1/#comment-205</link>
		<dc:creator>Brian Genisio</dc:creator>
		<pubDate>Fri, 29 May 2009 01:19:58 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=649#comment-205</guid>
		<description>How odd.  I experienced the exact same thing today with a file watcher I was testing.  I use UltraEdit, and I was getting 3 events when I expected one.  Sounds like the same problem.  How timely :)</description>
		<content:encoded><![CDATA[<p>How odd.  I experienced the exact same thing today with a file watcher I was testing.  I use UltraEdit, and I was getting 3 events when I expected one.  Sounds like the same problem.  How timely <img src='http://goneale.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

