Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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: still not working?

@larsonp: I'll send you a debug version soon.
larsonp

Re: still not working?

@martin: The actual timestamp is the system time, whatever that happens to be.

If it helps to know, I'm using Windows XP. Is there anything else that would help?
martin

Re: still not working?

So what is actual timestamp of downloaded file?
larsonp

still not working?

I am having the same or similar problem with scripting.
I am using SFTP to connect to a server, and attempting to download a file. I want to preserve the timestamp, so I use
get -preservetime /path/to/file/filename.txt G:\test\

Where G is a mounted network drive (NTFS, if it matters.)
And the transfer is successful, but the timestamp does not get set.

The same happens if G is changed to local drive C (NTFS, if it matters.)

The puzzling part, to me, is that if I use the GUI, and make sure the preserve timestamps box is checked, it works just fine. So, something is wrong with just the scripting version of get.
martin

Re: Is there any option in get command to preserve the time

@guest: I've tried it on several different networks, and it works for me everywhere.
Do you know on what platform does the server, you access via UNC, run?
Also have you tried upgrading to the latest version of WinSCP? I do not think it would help, but just in case...
anurag_kapoor

Re: Is there any option in get command to preserve the time

I face the problem if I specify UNC path in the destination box. It changes the timestamp to the current timestamp.

Please help
guest

Re: Is there any option in get command to preserve the time

Thanks for the quick response.
How can I use preserve timestamp in batch? I am doing the upload from a unix server to Windows 2003 server in batch mode using DTS.

Please help.
Thanks.
martin

Re: Is there any option in get command to preserve the time

There's preserve timestamp option.
guest

Is there any option in get command to preserve the time

Please forgive my ignorance.

I have this requirement where I need to preserve the timestamp in certain cases and in some other cases I want to get the files with the current timestamp. Is there any option with WinSCP which I can use to change the setting for the session?

I am using WinSCP 3.7.4.

Please help.
Thanks