简体   繁体   中英

How to transfer the only updated file on FTP Server into client machine using VB.NET?

How to transfer the only updated file on FTP Server into client machine using VB.NET? I have to transfer the only updated file to client machine through FTP from server machine where changes occurs.

You should use the FileSystemWatcher Class and FTP only the files that have changed. See the following VB.NET example . Specifically, you should hook into the OnChanged event .

For example:

Private Shared Sub OnChanged(source As Object, e As FileSystemEventArgs)
 ' your FTP code here
End Sub    

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