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

chli24

Sorry, latest version, 4.05 (Build 354).

Additional information:
To simulate wrong password/force error, I modified the Password field in the winscp.ini file (removed one char) for the Session I'm using in the script.
The password has not been changed on the remote server.
I did this for testing purpose.
martin

Re: Winscp script "hangs" when wrong .ini session password used

What version of WinSCP are you using?
chli24

WinSCP script "hangs" when wrong .ini session password used

Hi!
I'm facing the same problem as in:
https://winscp.net/forum/viewtopic.php?t=1859

I have a script that uses a .ini stored session and when the stored password is wrong for some reason (e.g. expired, changed), the script "hangs" since WinSCP prompts for a new correct password.

Is there any "winscp" scripting solution to this problem?

My script:
option batch on
option confirm off
open <stored session>
option transfer ascii
cd old
get <remote file> <local file>
close
exit

The last line in the log file:
2007-11-05 09:26:45.532 Session password prompt (<user>@<ip>s password: )

One possible solution is that I introduce an own timeout in my program that execute the WinSCP script. But I would like to have a more generic solution.

Thanks in advance
/Christian