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

Author Message


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

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License