Stored sessions, daylight saving time and port in scripting

Advertisement

Don Filippo
Guest

Stored sessions, daylight saving time and port in scripting

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! :D), I created two fake sessions: "withdst" and "withoutdst" for Winddows and Unix servers which looks exactly like this:
[Sessions\withdst]
ConsiderDST=0

[Sessions\withoutdst]
ConsiderDST=2    

When I open winscp.com with parameters:
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:
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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Stored sessions, daylight saving time and port in scripting

There's no workaround.
This request is being tracked already.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum