Well Indy, When do you think you'll have it optimized to 10-lines of code or less? :D
Wow, impressive! That's what I imagined I'd have to do if a 3rd party app like cURL were not available to me to make shell calls. I also imagined I'd have to do it in another lifetime.
For now, I'll finish up what I'm working on using cURL, but once I get it fully working (I successfully uploaded one file last night) I will have a look and see if I can duplicate my results with your library.
Have you considered releasing your own ftp uploading software for Windows? As far as I could tell, Wget only downloads. Wput was made by a hobbyist to address that issue. I downloaded a copy, but I havn't tried it yet. cURL downloads and uploads, and supports user name and password connections, which I need. If your library does that, and could be used to keep the connection open (only one call) and have multiple files uploaded to multiple folders while the connection stayed open, I think you'd have a winner on your hands. I mean I love products like Filezilla, but apps of that sort are more for navigating to folders and dragging and dropping files from client folders into the server directories. That's slow compared to an automated upload system, which assigns variables to client and server paths, and uploads files to the appropriate folders.
Thanks for the link to your library,
Pete