-1

Can we get something like this as below? not sure the exact syntax of it to check the file creation date before getting the file from FTP server.

get myfilename.txt -filemask=*>=1D

200 PORT command successful. 125 Data connection already open; Transfer starting. > R:ICMP port unreachable 226 Transfer complete. ftp: 4972265 bytes received in 2.82Seconds 1761.34Kbytes/sec. ftp>

but if I tried a simple get, and it work.

ftp> get myfilename.txt 200 PORT command successful. 125 Data connection already open; Transfer starting. 226 Transfer complete. ftp: 4972265 bytes received in 2.22Seconds 2237.74Kbytes/sec. ftp>

Victor
  • 1
  • 1

1 Answers1

0

The get myfilename.txt -filemask=*>=1D is syntax used by WinSCP scripting:
https://winscp.net/eng/docs/scriptcommand_get

You cannot use it with plain Windows ftp. Neither the ftp has any other even remotely similar functionality/syntax.

If you want to use such advanced file selection, you have to use more advanced FTP client – such as WinSCP.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992