TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
errol stone
NA
1
3.9k
File Watcher program
Sep 15 2011 5:12 AM
Hey!
I'm going to make a windows service file watcher program. What it going to happened is that some time during the first day of each month, files are going to be added to a directory on the web server. The files are going to look pretty much like this:
file_1_11.csv
file_2_11.csv
...
file_11_11.csv
So, when the eleventh(ie the last file. it can vary from month to month) file is copied to the directory, I want to start reading the files and add them to a database. I got the reading and the insertion to the database all sorted out, but I'm not really sure about how to start with the file watching. I've read some about it on the Internet, and I understand that there might be som problems using the built in FileSystemWatcher when working with multiple files. Anyone got an idea on how to attack this task?
Thanks
Suunker
Reply
Answers (
2
)
Disabling automatic device detection programmatically
[C# WindowServices and SAMBA share]