Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Directory Polling with Windows Service
 

Directory Polling with Windows Service

Hi,

I have developed a Windows service to poll the directiory when the new file is created in the particular directory. I have deployed the windows service and tested. The create event of the "FileSystemWatcher" is not triggered for the very first file which i was created in the specified directory. But from the next file the create event is triggered . So plese help me out to fix this problem.

Thanks

Jackuline  Monday, April 16, 2007 12:09 PM

Hi , it is hard to tell whyitis happen in your case? Pleasecheck thisarticle ,it has a detail sample about how to use FileSystemWatcher toraise an event whenthere is change event .

Gavin Jin - MSFT  Thursday, April 19, 2007 8:29 AM

Hi Gavin,

Thank you for your reply. My solution is working well.

Jackuline  Tuesday, April 17, 2007 6:24 AM

Hi , it is hard to tell whyitis happen in your case? Pleasecheck thisarticle ,it has a detail sample about how to use FileSystemWatcher toraise an event whenthere is change event .

Gavin Jin - MSFT  Thursday, April 19, 2007 8:29 AM

You can use google to search for other answers

Custom Search

More Threads

• stuck with string stuff
• How to fill ComboBox in DataGridView
• gridview not binding from another class.
• DGV Binding
• DataGrid Expand problem
• Why doesn't the Form.BackroundImage property take affect when Form.RightToLeftLayout is set to True?
• A good way to change datagridview row color
• change a datagridview col type at runtime
• treeview and sql server
• TableAdapter + QueryBuilder