exit closes batch in beta

Advertisement

Someguy
Guest

exit closes batch in beta

I have a DOS batch file that contains the following:
@echo off
winscp.com /command "open test_session" "option batch abort" "option confirm off" "get test.dat" "close" "exit"
echo %errorlevel%

Using beta 5.0.6, the last echo is not done. It seems that the exit closes the batch. Using 4.3.7 I get the errorlevel.

Also, in beta, the new line in the stdout is only "0A" instead of "0A 0D".

Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

Re: exit closes batch in beta

Someguy wrote:

I have a DOS batch file that contains the following:
@echo off
winscp.com /command "open test_session" "option batch abort" "option confirm off" "get test.dat" "close" "exit"
echo %errorlevel%

Using beta 5.0.6, the last echo is not done. It seems that the exit closes the batch. Using 4.3.7 I get the errorlevel.
I cannot reproduce the problem. For me the errorlevel is printed.

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.


Also, in beta, the new line in the stdout is only "0A" instead of "0A 0D".
This issue has been added to tracker:
https://winscp.net/tracker/812

Reply with quote

Advertisement

Someguy
Joined:
Posts:
9

I think I have further tracked down the problem.
When running winscp.com in a DOS session and then immediately exit without any action, after I am not able to run any batch script in the same DOS session.

Example:
C:\TEMP\1>test_scp.cmd
I am here

C:\TEMP\1>winscp.com
winscp> exit

C:\TEMP\1>test_scp.cmd

C:\TEMP\1>test_scp.cmd

C:\TEMP\1>

test_scp.cmd contains:
@echo I am here

Tried this on Windows XP.

Reply with quote

Advertisement

You can post new topics in this forum