I develop in VFP6 and still uses the dos based pkzip utility to back up my files. The backup procedure has two options, either to a: drive or a predetermined hard disk location. I used shellexecute to run the command and the required parameters and used the last parameter as "0" to hide the dos screen. However, If the user chooses drive a, I have to show the dos screen in order to indicate the progress of the compression process. If I chose to hide the dos screen, my next line of code will be executed immediately (in this case, a message box saying backup is finished!) while the backup process is still in session. The question is, how do you ensure (through code) that the next command line be executed only after the dos program is finished and while doing so, is it possible to include an avi or progress bar to indicate something is going on? Another thing is, is it possible to "capture" the dos command output and relay it through a vfp form or wait window message?