Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need an alternative to the RUN command
Message
From
11/01/2000 18:04:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00316534
Message ID:
00316546
Views:
18
>Its clear from the past days efforts that I need to use something other than the VFP RUN command to launch a couple of viewer programs - Envoy, Word and Acrobat.
>
>What alternatives are there to this command? Any examples would be greatly appreciated!
>

Tons of them; if you have VFP6, the FFC has a ShellExecute() class that uses the Win32 API ShellExecute() to run things. My API_APPRUN class, which can be downloaded from the Files Section on UT, uses the CreateProcess() API to run programs; it offers a great deal of flexibility as far as running and tracking WinApps and DOS apps, including the ability to wait on their termination and examine their termiantion code. And then there are automation options as well - Wscript.Shell has a Run method, Shell.Application has an Open method. The list is very extensive.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform