Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use FileSystemWatcher with FTP


where it automatically fire 10 seconds on search file according to FTP

if file exists so it prompts "new file has just come "
Posted

FileSystemWatcher doesn't "automatically fire" on a schedule. it watches the specified folder for the specified filename/mask, and fires events as a result. You might find this article series interesting, especially part 2:

FileSystemWatcher - Pure Chaos (Part 1 of 2)[^]

FileSystemWatcher - Pure Chaos (Part 2 of 2)[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Jul-11 13:17pm    
Absolutely. My 5.
--SA
Sergey Alexandrovich Kryukov 12-Jul-11 13:19pm    
On second thought, what might be need to poll periodically is the FTP client, but this is a limitation of FTP -- no way to make inversion of control. Some custom notification subscription-based service can be created on the same host, using different channel such as TCP.
--SA
Sergey Alexandrovich Kryukov 13-Jul-11 17:11pm    
See also my recent solution (referenced).
--SA
qasimidl 14-Jul-11 1:47am    
what i want just settle down the FTP path with Filewatcher

thanks
See also my recent answer: FileSystemWatcher path with FTP (credentials)[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900