I need to automate a Batch DOS script to automatically download an enteire directory tree, using FTP.
It should include either subdirectories, either subfiles.
How can I do this?
Now I do something like:
Code: Select all
>cd c:
>cd "C:\DownloadFTP\"
>ftp -A <ip_address>
ftp>cd "\U:\SourceFTP"
ftp>cd "Dir One"
ftp>get "FileOne.txt"
ftp>cd ..
ftp>cd "Dir Two"
ftp>get "FileTwo.txt"
... but I don't know how subdirectory are there or how (and what) files are contained.
How can I just GET *all* the content of the "SourceFTP" directory?
Thank you a lot!