Topic "get file based on date"

Author Message
amatbrewer

Guest


I am looking for a way to write a script that will get a file with todays date as part of the file name. The file name will be formated as follows: [some text].mm.dd.yyyy.[more text]

I would prefer it to retirieve the most recient date available, but suspect that would be more trouble than it is worth.

Any suggestions as to how to go about doing this?

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
One of these two examples may help you:
https://winscp.net/eng/docs/script_download_timestamped_filename
https://winscp.net/eng/docs/script_download_most_recent_file
_________________
Martin Prikryl
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