Fetching data from server by FTP command is not a problem .But if I like to fetch the today's file from the server, whose name is like (BACKUP20141210) and if it presents in a folder with previous dated backup files like (BACKUP20141209, BACKUP20141208, ...), what kind of FTP script is suitable here? Here, I share my BAT FTP scriptopen myftp.myserver.commyusernamemypasswordlcd c:\myfoldercd webfolderfor /f tokens=2-4 delims=/  %%a in ('echo %date%') do echo get myfile%%a%%b%%cBut I get an Invalid command response with the for /f tokens=2-4 delims=/  %%a in ('echo %date%') do echo get myfile%%a%%b%%c line, and it stops.Can anyone suggest any relative answer of it. Is there any option to fetch file from server(LINUX) to client by command, not by using FILEZILLA or SFTP, etc. Actually I need a automatic process, will continue on daily basis.
Fetching data from server by FTP command
linux;shell;ubuntu;shell script