Timestamp added to file name just stopped working.

Advertisement

capjlp
Joined:
Posts:
3
Location:
Kentucky, USA

Timestamp added to file name just stopped working.

Hi All

I had this script working daily for the past 3 years and its stopped doing what I expect.

It was putting the file over on my vendor's sftp and adding the timestamp in the file name.
Example Data202010291133.csv
Now its putting over Data%%TIMESTAMP#yyyymmddnnss%%.csv

Here is my command
 "put -nopermissions -nopreservetime C:\MyDirectory\Data.csv /Import/Data/Inbound/Data%%TIMESTAMP#yyyymmddnnss%%.csv"^

Any ideas on what changed again this script has been update in 3 years it last worked on 9/30 correctly then after that it started not doing what I expect.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,378
Location:
Prague, Czechia

Re: Timestamp added to file name just stopped working.

I guess someone downgraded your WinSCP installation to a version that does not support the %TIMESTAMP% syntax.

If this does not help, please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum