<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Introduction To FileSystemWatcher</title>
	<link>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/</link>
	<description>Articles on VB.NET and Software Development Team Leadership</description>
	<pubDate>Sat, 22 Nov 2008 08:10:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Tamilarasi</title>
		<link>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-1154</link>
		<author>Tamilarasi</author>
		<pubDate>Mon, 07 Jul 2008 06:12:05 +0000</pubDate>
		<guid>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-1154</guid>
		<description>the article is very much useful. i am having one big question that
"Can we watch a folder available in FTP ? "</description>
		<content:encoded><![CDATA[<p>the article is very much useful. i am having one big question that<br />
&#8220;Can we watch a folder available in FTP ? &#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikram</title>
		<link>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-1132</link>
		<author>Vikram</author>
		<pubDate>Wed, 11 Jun 2008 05:19:12 +0000</pubDate>
		<guid>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-1132</guid>
		<description>Is there anyway we can have two type of files being watched by a FSW e.g abc*.* and *.def</description>
		<content:encoded><![CDATA[<p>Is there anyway we can have two type of files being watched by a FSW e.g abc*.* and *.def</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shahaji</title>
		<link>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-1027</link>
		<author>shahaji</author>
		<pubDate>Thu, 20 Mar 2008 07:38:57 +0000</pubDate>
		<guid>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-1027</guid>
		<description>If the system file like ntldr or some files from temp foder that always change at that time can we  avoid that perticular file or folder.have  u solution for this</description>
		<content:encoded><![CDATA[<p>If the system file like ntldr or some files from temp foder that always change at that time can we  avoid that perticular file or folder.have  u solution for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jn-Michael</title>
		<link>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-1019</link>
		<author>Jn-Michael</author>
		<pubDate>Mon, 10 Mar 2008 20:08:21 +0000</pubDate>
		<guid>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-1019</guid>
		<description>Is there a way I could have a little example about using WorkQueue or Generic List, just to put me on the track ^^</description>
		<content:encoded><![CDATA[<p>Is there a way I could have a little example about using WorkQueue or Generic List, just to put me on the track ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jfrankcarr</title>
		<link>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-945</link>
		<author>jfrankcarr</author>
		<pubDate>Wed, 28 Nov 2007 20:22:57 +0000</pubDate>
		<guid>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-945</guid>
		<description>Bill,

The way I'm doing this is to put a file on a generic Queue if it isn't already on the queue. Here's an example:

&lt;pre class="csharpcode"&gt; &lt;span class="kwrd"&gt;Private&lt;/span&gt; &lt;span class="kwrd"&gt;Sub&lt;/span&gt; OnCreated(&lt;span class="kwrd"&gt;ByVal&lt;/span&gt; source &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;Object&lt;/span&gt;, &lt;span class="kwrd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwrd"&gt;As&lt;/span&gt; FileSystemEventArgs)
        &lt;span class="kwrd"&gt;If&lt;/span&gt; &lt;span class="kwrd"&gt;Not&lt;/span&gt; WorkQueue.Contains(e.FullPath) &lt;span class="kwrd"&gt;Then&lt;/span&gt;
            WorkQueue.Enqueue(e.FullPath)
        &lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;If&lt;/span&gt;
&lt;span class="kwrd"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Bill,</p>
<p>The way I&#8217;m doing this is to put a file on a generic Queue if it isn&#8217;t already on the queue. Here&#8217;s an example:</p>
<pre class="csharpcode"> <span class="kwrd">Private</span> <span class="kwrd">Sub</span> OnCreated(<span class="kwrd">ByVal</span> source <span class="kwrd">As</span> <span class="kwrd">Object</span>, <span class="kwrd">ByVal</span> e <span class="kwrd">As</span> FileSystemEventArgs)
        <span class="kwrd">If</span> <span class="kwrd">Not</span> WorkQueue.Contains(e.FullPath) <span class="kwrd">Then</span>
            WorkQueue.Enqueue(e.FullPath)
        <span class="kwrd">End</span> <span class="kwrd">If</span>
<span class="kwrd">End Sub</span></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: jfrankcarr</title>
		<link>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-944</link>
		<author>jfrankcarr</author>
		<pubDate>Wed, 28 Nov 2007 20:18:56 +0000</pubDate>
		<guid>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-944</guid>
		<description>J-Micharl,

The way I do this is to not use the controls collection at all. Instead I use a generic List of FileWatchers that I can create and remove as needed.</description>
		<content:encoded><![CDATA[<p>J-Micharl,</p>
<p>The way I do this is to not use the controls collection at all. Instead I use a generic List of FileWatchers that I can create and remove as needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-942</link>
		<author>Bill</author>
		<pubDate>Wed, 28 Nov 2007 18:46:37 +0000</pubDate>
		<guid>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-942</guid>
		<description>"File actions may raise multiple events so you will need to take precautions against processing the same file multiple times."

Yes. Yes. Yes. ....but how?</description>
		<content:encoded><![CDATA[<p>&#8220;File actions may raise multiple events so you will need to take precautions against processing the same file multiple times.&#8221;</p>
<p>Yes. Yes. Yes. &#8230;.but how?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J-Micharl</title>
		<link>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-929</link>
		<author>J-Micharl</author>
		<pubDate>Sun, 18 Nov 2007 17:37:23 +0000</pubDate>
		<guid>http://vbnotebookfor.net/2007/10/01/introduction-to-filesystemwatcher/#comment-929</guid>
		<description>Hello ;) Little question for you.

Is there a way to dispose a FSW in a for each?
Example: 
dim n as control
  for each n in controls
    if typeof(n) is filesystemwatcher then
      if path = "path to delete" then n.dipose()
    end if
  next

When I try this code, I have an error :
It tells me that N (system.windows.forms.control) will never be the type of FileSystemWatcher. 

Is there another method? :)
Thx</description>
		<content:encoded><![CDATA[<p>Hello ;) Little question for you.</p>
<p>Is there a way to dispose a FSW in a for each?<br />
Example:<br />
dim n as control<br />
  for each n in controls<br />
    if typeof(n) is filesystemwatcher then<br />
      if path = &#8220;path to delete&#8221; then n.dipose()<br />
    end if<br />
  next</p>
<p>When I try this code, I have an error :<br />
It tells me that N (system.windows.forms.control) will never be the type of FileSystemWatcher. </p>
<p>Is there another method? :)<br />
Thx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
