Forum Moderators: bakedjake

Message Too Old, No Replies

mget question

can i get subdirectories?

         

ogletree

9:56 pm on Dec 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am writing a batch file I want to do a mget command that gets all the files in the current directory plus the subdirectires and all the files in them. I normaly do mget *.* but that does not do it. I am used to xcopy *.* /e on windows. This is from a Windows 2000 command prompt ftp. I know this is a unix forum but ftp is a unix type program in it's roots.

RainMaker

6:26 am on Jan 3, 2004 (gmt 0)

10+ Year Member



I wrote a C# application to be able to do this. This was not a pretty process in the end but it's basically do-able. I went as far as going to the FTP level to be able to pull it off by doing an established connection and doing the send and receives individually and getting back the responses. Basically I went and got a File-Listing of all the files including files within subdirectories, and then I just downloaded them because you can specify absolute in FTP. This is just an option, of course it's not the only way. If you want any more further explanation just let me know.