Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I launch a windows program while in FoxPro?
Message
 
To
12/04/2000 14:32:43
Dwight Lind
Land Engineering, Llc
Tucson, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00356032
Message ID:
00358951
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform