Close WinSCP if Access denied

Advertisement

Otto01
Guest

Close WinSCP if Access denied

Hello together,

I'm using WinSCP to download some files automatically. Sometimes our partner change a password. So I get a Access denied.

At this case I have a little problem, because my software is still waiting, until WinSCP is finish and close the command window.

I call WinSCP with: MayPath\winscp.exe /console /script="MySkricpt.txt"

MyScript:
option confirm off
open ftp://XXX:XXX@XXX"

At this Point I got the "Access denied", and the WinSCP is trying again and again...

My qusetion: is there an option, to close WinSCP if I got an Access denied?

Many Thanks
Markus

(Of course I had read the Documents, and I have found no answer)

Reply with quote

Advertisement

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

Re: Close WinSCP if Access denied

That's the expected behavior. Are you using the latest version of WinSCP?
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Guest

Hello Martin,

thank you, for your prompt reply.

Before we use the version 5.6.2.0. Now I upgrade WinSCP to version 5.13.8.0.
At this newer version, WinSCP close automatically after "access denied".

Thank you Martin!

For the completeness, the log file:
=================================================
. 2019-03-05 13:01:43.266 Connecting to XXX.XXX.XXX.XXX...
. 2019-03-05 13:01:43.282 Connected with XXX.XXX.XXX.XX. Waiting for welcome message...
< 2019-03-05 13:01:43.298 220 FTP server ready.
> 2019-03-05 13:01:43.298 USER XXXXXX
< 2019-03-05 13:01:43.313 331 Password required for XXXXX
> 2019-03-05 13:01:43.313 PASS ********
< 2019-03-05 13:01:45.360 530 Login incorrect.
. 2019-03-05 13:01:45.360 Connection failed.
. 2019-03-05 13:01:45.360 Password prompt (last login attempt failed)

Reply with quote

Advertisement

You can post new topics in this forum