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

Author Message
Don Filippo

Guest


Hello!

I use WinSCP.com 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:
Code:
[Sessions\withdst]
ConsiderDST=0

[Sessions\withoutdst]
ConsiderDST=2


When I open winscp.com with parameters:
Code:
winscp.com /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:
Code:
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
There's no workaround.
This request is being tracked already.
_________________
Martin Prikryl
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License