download latest file via command line

Core FTP client questions and answers
Post Reply
kmarie630
Posts: 4
Joined: Mon Feb 24, 2014 8:09 pm

download latest file via command line

Post by kmarie630 »

Is there a way to use the command line to download the latest version on some ftp server? Specifically, I'm using SFTP.

Right now we are having to manually download the file, because we can't figure out how to identify the latest file to the command line. The file names are random, we cannot predict what they will be.
cp
Posts: 124
Joined: Sun Sep 11, 2011 5:18 am

Post by cp »

Use a wildcard and the -latest option.

See help topic 'command line' for examples.
kmarie630
Posts: 4
Joined: Mon Feb 24, 2014 8:09 pm

Post by kmarie630 »

Awesome, go it to work. But with -newest, as opposed to -latest. Help docs say -newest.

What's the difference between using coreftp.exe and corecmd.exe? Both seem to work.

Also, what if you wanted to download the latest 3 or however many files? Is that possible?
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

currently it is not possible with this option but it would make sense to have an additional parameter to do so. It will be added to an upcoming build.
kurladheeraj
Posts: 1
Joined: Mon Sep 15, 2014 5:55 pm

Post by kurladheeraj »

Hi, I am using the core ftp for the first time and I tried to open corecmd.exe and enter the commands but the corecmd prompt is not at all taking any commands typed. Could you please help me how to use the command line commands for doing ftp.

Thanks in advance
Post Reply