>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?
Hi,
As Ed suggested you may use some WSH code like this:
...
strMyApp = "c:\myfolder\myapp.exe"
WshShell = CreateObject("Wscript.Shell")
WshShell.Run(strMyApp)
...
Then, method Run can accept the second parameter, which is logical and tells if you want to wait until myapp is closed.
HTH, Igor
Igor Gelin
Database Developer