Original Post
Hello, I am working on a program which downloads a file from a server and then executes stuff based on it, and then uploads a resulting file back to the server. I have writen a large portion of the code already in C++, but it is getting out of hand with all of the system calls and trying to debug a multithreaded program. It's multithreaded because I want a systray icon to show up with a play/pause option on it. Right now, it also pops up a bunch of dos windows really fast which is no good. I know that this is because I am using a system( ); call, but the other alternatives get very messy. Here are the steps this program must complete: 1) Download a zip file 2) extract the zip file 3) load an ini file which holds all of the filenames for this particular job 4) check the ini file and make sure all of the dependencie files are up to date. If not, download the new version from the server. 5) execute some batch files that were in the zip file 6) execute a script (This is the part where all of the interesting, time consuming work is done) 7) possibly run some more batch files (depends on what it has in the ini) 8) zip everything back up 9) upload the zip back to the server 10) rinse and repeat Also, I must have a method for running this program in idle as well as pause it at any point of time. Does anyone have any ideas on which language might be better than C++? I have written a lot of helpful scripts in perl, which seems well suited for this job, but I don't want to force the users to download an extra 20MB implementation of perl. Is there an easy way to do something like this or should I just keep plowing ahead in C++? Thanks! Dwiel