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: How to download files with existing timestamp?

Exactly, like you hope for, use the wildcard/file mask: myfile_organization_imp_*.csv

https://winscp.net/eng/docs/file_mask
Sean

How to download files with existing timestamp?

Hi,
Using the functionality in WINSCP, I was able to create a batch file and successfully download files to my local server.
However, in future state the files will be delivered to the SFTP with the source applications timestamp already appended.
I am trying to create a script now that will go in to the SFTP and download the file using a wildcard.

The file arrives in the outbound file with the below naming convention:
myfile_organization_imp_20190816_093820.csv
However, we will not know the full file name to pull, so were hoping to use a wildcard like below:
myfile_organization_imp_*.csv.

Any thoughts on how we can achieve this, as we will have 9 different files with different naming conventions, arriving at different times.

Any help would be greatly appreciated.