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:
The last line in the log file:
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
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
2007-11-05 09:26:45.532 Session password prompt (<user>@<ip>s password: )
Thanks in advance
/Christian