Command line on Windows to get latest files from FTP site
<p>I need a batch scripts run from command line on Windows, which downloads latest files from FTP site (the latest files might have more than a files sometimes).</p>

<p>I have used the following command from <code>WinSCP.com</code> but I only get one latest file. Can give me some direction?</p>

<pre><code>get -latest *.txt
</code></pre>

<p>Wxample: with above command I only get filename <code>XYZ.txt</code> file only, I wish have a scripts manage to get both <code>ABC.txt</code> and <code>ZZZ.txt</code>.</p>

<pre><code>filename        last written date
------------    ----------------------
ABC.txt         2016-01-01
ZZZ.txt         2016-01-01
A123.txt        2015-12-10
</code></pre>