Topic "Problem with Timestamp - Using Scripts"

Author Message
ahofmann
[View user's profile]

Joined: 2013-08-26
Posts: 2
Location: Zurich
Hi there,

i use WinSCP in some Batchfiles (.bat) to connect to an SFTP Server , now since we have "Summer Time" (Daylight Saving Time) the time of the files is one hour off the real time.

I found out that maybe i should switch the settings in the options of Winscp. (Daylight Saving Time)

MY PROBLEM:

I can change this setting, and save it then as a file, but how can i change the default setting in the program, so that my scriptfiles that use WinSCP also take the new setting and not the default one.

Thank you very much,
Andre
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Please read FAQ:
https://winscp.net/eng/docs/faq_script_ini

If that does not help, come back.
ahofmann_again

Guest


Hi there,

thank you so much. I played around a bit but didn't get it to work properly.

In my specific case i have a script (.bat) and want the script to use another setting for "DAYLIGHT SAVING TIME" than the standard setting of WINSCP, i want to try it with "Preserve remote timestamp" or option 2 to see if that solves the problem i have with times that aren't right.

I didn't fully understood how i can integrate this setting now into the script file, do you know if there's an example with one of those ENVIRONMENT Settings?

Thank you very much,
Andre
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
So what did you try?

Should be something like:
Code:
open ... -rawsettings ConsiderDST=2
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