Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Someguy

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.
Someguy

Mail sent.
martin

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
martin

Re: exit closes batch in beta

Thanks for your report.
I will take a look at this issue.
Someguy

typo

"0A 0D" should be "0D 0A"
Someguy

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.