Topic "get or synchronize"

Author Message
Guest




I was able to download last updated file from ftp thru winscp (sftp)batch file.
File name changes every night on remote ftp site with file_name_mm_dd_yyyy_hh_mm.sec.
As file name changes with date time stamp we like to keep only newer file on local drive not all previous date file.
Question is which option to use synchronize or get (which is working file to get only recent file from remote ftp)

Thanks for reading my post.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25025
Location: Prague, Czechia
Just delete all local files and download the latest one.
See 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