Topic "get file by date"

Author Message
bigfatgreedykat
[View user's profile]

Joined: 2006-05-31
Posts: 7
Hello all

I am using scripting option. Is it possible to GET a file for today's date.

Look forward to any replies!

BFGK
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I'm not sure if I understand. Do you want to download only files created "today"?
_________________
Martin Prikryl
bigfatgreedykat
[View user's profile]

Joined: 2006-05-31
Posts: 7
Hello

Yes, i would like to download todays file using script=*.txt option.

Is this possible?

regards

BFGK
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
No.
But if the older files are already in the local directory, you can use synchronize function to download only new files.
_________________
Martin Prikryl
bigfatgreedykat
[View user's profile]

Joined: 2006-05-31
Posts: 7
Hello

is there an example of "synchronize function"

regards

BFGK
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Type "help synchronize" into console.
_________________
Martin Prikryl
bigfatgreedykat
[View user's profile]

Joined: 2006-05-31
Posts: 7
Hello

This appears simple enough, thanks

But can it be written into script?

regards

BFGK
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Of course.
_________________
Martin Prikryl
bigfatgreedykat
[View user's profile]

Joined: 2006-05-31
Posts: 7
Hello

Worked out how to download files from remote to local:

synchronize local

However, only need today's file.

Any ideas?

regards

Jai
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Again, if you keep all the file in the local directory, only the new (totady's) files will be downloaded.
_________________
Martin Prikryl
bigfatgreedykat
[View user's profile]

Joined: 2006-05-31
Posts: 7
Hello

Sychronize works perfectly now from script.

However, just need to download from remote to local a specific file extension.

Please advise.

BGFK
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
option include "*.gif"
_________________
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