I'm writing a windows command line batch file, in which I need to retrieve only JPG files from an FTP server, while keeping the folder structure of the FTP.
ncftp works perfectly for this, as long as I download ALL files - not just JPG:
ncftpget -R -u %ftpuser% -p %ftppassword% %ftphost% %downloadpath% /
But if I want to filter only JPGs, by doing this:
ncftpget -R -u %ftpuser% -p %ftppassword% %ftphost% %downloadpath% /*.jpg
I only download the JPGs on the root - not the recursive.
Any ideas of what I'm doing wrong? I also tried the winscp command line with exactly the same behavior.
Many thanks for your response.