简体   繁体   中英

How can I create a windows service that listens to a directory and then sftp's it to a local directory

I'm looking for a starting point and I know my solution has to incorporate MSMQ as part of it.

I have a server that users drop a file into a directory. I have a client that listens to the directory and when something is dropped into that directory the client SFTP's it to a local directory.

Can some one give me a starting point of what technologies I may need to implement this?

A previous developer used Top Shelf and Mass Transit but we have been asked to create our own version as we won't need all the functionality that is available in these two projects. That and also those two open source projects haven't been to reliable.

Thanks.

我认为,如果您打算在.net中实现,那么查看System.IO.FileSystemWatcher将是一个很好的起点。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM