Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

There's no workaround.
This request is being tracked already.
Don Filippo

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.