开发者

Copy Files coming in a folder over a network in C#

开发者 https://www.devze.com 2022-12-19 17:08 出处:网络
I receive Files in a Folder at say 2 secs interval from a host machine over \" a TCP/IP network\" at some Port X. I need to have a service / watcher which will 开发者_运维问答copy these Files to other

I receive Files in a Folder at say 2 secs interval from a host machine over " a TCP/IP network" at some Port X. I need to have a service / watcher which will 开发者_运维问答copy these Files to other location. I tried FileSystemWatcher, but it seems that the "Created event" of the watcher gets fired as soon as a byte is getting written to disk.

What is the best way to accomplish this ?


Why not run the copier on a timely basis? Say every 1 minute and copy files.

FileSystemWatcher doesn't seem to be a good option where changes happen more frequently.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号