Topic "What is the command/syntax to download unique file names?"

Author Message
Tristram

Guest


I need to automate downloading a file from an FTP server.

This is format of the file name includes the date and updates constantly

example: Filename_2013_03_14_1010.dat

the next day will be...

Filename_2013_03_15_1010.dat then
Filename_2013_03_16_1010.dat up to
Filename_2013_03_31_1010.dat then it will update to
Filename_2013_04_01_1010.dat and so on...


What is the command/syntax to handle this situation with a changing date?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Please read documentation:
http://winscp.net/eng/docs/script_download_timestamped_filename

If that does not help, come back.
_________________
Martin Prikryl
Guest




prikryl wrote:
Please read documentation:
http://winscp.net/eng/docs/script_download_timestamped_filename

If that does not help, come back.



What I mean is...What if the file you are DOWNLOADING is timestamped AND you can predict what the filename will be in future. NOT the other way around like you reply link suggests.

Cheers
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
But the technique to solve your problem is exactly the same. You just want to chang source file timestamp not destination file timestamp.
_________________
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