Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

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\"

See https://winscp.net/eng/docs/faq_script_non_recursive
tannercortes

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

Hello:

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?
Thanks