I'm trying to set up some batch files to retrieve some files from a server according to the date in the file name and I'm wondering if
this will work also in my ftp scripts or if I have to learn scripting to be able to do this
I call my script from my batch file like so:
file_retrieve.txt looks like this now:
open server
username
password
binary
lcd c:\temp
get filea20080411.dat filea20080411.dat_1
get fileb20080411.dat fileb20080411.dat_1
get filec20080411.dat filec20080411.dat_1
bye
and I'm wanting to change the get lines to be:
get file*%date:~-4,4%%date:~4,2%%date:~7,2%.dat file*%date:~-4,4%%date:~4,2%%date:~7,2%.dat_1
also replacing the 3 lines with one with a wild card