rahul kumar
rahul kumar

Reputation: 11

How to automate WINSCP file transfer using Java?

I need to automate transfer of files from my local machine to a web server.For that I need to login into winscp and copy the file from my machine to some folder in server.

Can anyone please help regarding how to automate this using java only?

Upvotes: 0

Views: 2848

Answers (1)

alexanderific
alexanderific

Reputation: 790

There are several libraries available in Java to perform file transfers over protocols like SSH. One such example is JSch. http://www.jcraft.com/jsch/

If you are looking for a specific protocol or architectural process, you will need to provide some additional information about what it is you are trying to accomplish in Java (ie nightly batch process, ETL, watching a directory and moving files as they show up, etc).

Upvotes: 1

Related Questions