Topic "Winscp GET command with variable in the file name"

Author Message
Autourdupc

Guest


Dear all,

I'm new in WinSCP scripting, but already use it for backup between servers...

I need to filter files names for a GET command. I already use a text file for script commands.

I need to GET files among many others with names containing the date of the day.
i.e "FILE20070704.bak"
The name of the file change everyday, so my script needs to use the DATE of the day in the filter for the file name.

Do you have a solution for my problem ?

Best regards,
Laurent.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25025
Location: Prague, Czechia
You can use mask file*.bak or check this example.
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