Topic "Stored sessions, daylight saving time and port in scripting"

Author Message
Don Filippo



I use as process in my application. Because I cannot set daylight saving time option in scripting mode directly (please implement this! Very Happy), I created two fake sessions: "withdst" and "withoutdst" for Winddows and Unix servers which looks exactly like this:


When I open with parameters:
Code: /command "open withdst" "do something what i want you to do"

Then on standard output winscp ask me for host, user and password. But it works only if sftp server is listening on default 22 port. If the port is different, winscp show me after setting host:
Searchig for host...
Network error: Connection refused.

How to get around this problem? I send data to a lot of servers which changes dynamically very often and setting all informations in .ini file in stored session for each server is not an option.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
There's no workaround.
This request is being tracked already.
Martin Prikryl

You can post new topics in this forum


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