Topic "How do I capture the return code of the winscp script?"

Author Message
senibleguy
[View user's profile]

Joined: 2008-11-21
Posts: 2
Hello,
I have a batch file that inovkes the winscp script to fetch some files from the server.This batch file is accessed via a java application.My requirement is to redirect to a new page once the script finishes the execution. Is there any way I can capture the exit status on close of the connection to the server, so that i can use that code in the application for redirecting. Thanks in Advance.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
I do not know Java. But it is probably very simple. Just check Java documentation.
_________________
Martin Prikryl
senibleguy
[View user's profile]

Joined: 2008-11-21
Posts: 2
Hi,
can you please let me know if there is any possibility of capturing the exit status of winscp script which is being invoked by the windows batch file.If I can captute the exit status of the batch file, that should solve my problem.Thanks in Advance.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Sorry, I do not understand. What is difference from capturing exit status of batch file and application?
_________________
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