Topic "Java Interaction with WinSCP"

Author Message


Hello all,

I am attempting to write Java code that communicates with WinSCP. While I see plans for a .NET assembly, I assume there is no such plan for a Java library with the same functionality. My question is: are there any examples of Java interaction with the command mode of WinSCP? Most specifically, I would like to know how to do error handling. Also, is there any way to suppress / otherwise deal with times that the command interface asks the user for input? How does the .NET assembly handle that case?

Bobby J
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26889
Location: Prague, Czechia
I beleive it should not be difficult to translate example in below .NET guide to Java:

Use "option batch abort" to avoid the prompts.
Martin Prikryl

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License