Topic "Using get -latest /home/user/* c:\downloaded\"

Author Message



I downloaded and installed the beta version so that I could utilize this new feature, which I'm assuming would get me the latest file based on the filedate within specified folder.

I need to get the latest file on the root of the FTP server and tried the following command. However, it started downloading all files in all subdirectories.

get -latest /* C:\RAW Source\

Is this command not for what my intention is?
Or if so, can you help me understand/fix?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
Your command will pick the latest file or directory in the root folder and download that. So if the newest entry is a (sub)directory, it will download that directory.

If you are interested in files only, exclude the directories:

get -latest /* -filemask=|*/ "C:\RAW Source\"


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