Topic "Java Interaction with WinSCP"

Author Message
bobbyj22

Guest


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?

Thanks,
Bobby J
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
I beleive it should not be difficult to translate example in below .NET guide to Java:
http://winscp.net/eng/docs/guide_dotnet

Use "option batch abort" to avoid the prompts.
http://winscp.net/eng/docs/scriptcommand_option
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License