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

Advertisement

senibleguy
Joined:
Posts:
2

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

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,749
Location:
Prague, Czechia

Re: How do I capture the return code of the winscp script?

I do not know Java. But it is probably very simple. Just check Java documentation.
_________________
Martin Prikryl

Reply with quote

senibleguy
Joined:
Posts:
2

Re: How do I capture the return code of the winscp script?

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,749
Location:
Prague, Czechia

Re: How do I capture the return code of the winscp script?

Sorry, I do not understand. What is difference from capturing exit status of batch file and application?
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum