Topic "Winscp script hangs when wrong .ini session password used"

Author Message
[View user's profile]

Joined: 2007-11-05
Posts: 4
Location: Sweden
I'm facing the same problem as in:

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>

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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
What version of WinSCP are you using?
Martin Prikryl
[View user's profile]

Joined: 2007-11-05
Posts: 4
Location: Sweden
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.

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License