You could call the shell and ftp the file, but another option is to use an ftp c++ library to send the file within your C++ code. google c++ ftp library, there are quite a few. libcurl is one that we use, it does ftp and many more.
I don't like calling the shell from my programs, because there are too many unknowns and its more difficult to determine what the problem was and how to recover from it.
Last edited by crabboy; 02-24-2009 at 02:26 PM.
|