>>Thanks for assistance. I had asked how to copy some files and the run an exe. You suggested using RUN/N mywinapp.exe. I used this method. I also tried RUN/N3 mywinapp.exe It turned on my windows program and then it placed my windows program in the background and returned to my VFP screen that I launched from. Any advise as to how to keep my windows program in forground?
>
>You can do it through Windows API call, This question was answered here recently by Ed Rauh or George Tasker (probably with the code sample) but UT search doesn't work right now and I can't find it.
If you use RUN /N7 the application will be minimized and inactive. RUN /N4 will cause it to be normal sized, but inactive. Unfortunately, it'll be on top of the currently active application. You could probably use SetWindowPos() to position it in the Z-Order, but I don't think that you can keep it from displaying, at least temporarily, on top of the active app.
George
Ubi caritas et amor, deus ibi est