I want to get one or many files from a source ftp site. I only want to get the files that have a constant prefix ("ORDER"). I will later import these files into my db, but for right now, I just want to copy these specified files to my local directory ("c:\Destination").
I have tried this...
open ftp.[address]
[username]
[password]
cd \SubFolder
for %%I in (ORDER*.txt) do copy %%I c:\Destination\
quit
But nothing apparently happens(??). I am able to hardcode for a single file with a static name. but using the variable for multiple files is not working for me. I have used "copy", "xcopy" and "get" in the "do" command, but none appear to work.
Thanks in advance.