Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to specify working directory with 'run' command?
Message
From
29/10/1999 19:39:39
 
 
To
29/10/1999 15:14:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00282962
Message ID:
00284202
Views:
22
>>API_APPRUN makes it easy...
>
>What does it do? Easier than the FFC?

It does a good deal more than the ShellExecute class. It uses CreateProcess() to run things, allows you to specify a starting directory and Windows mode for DOS and WinApps, and allows you to run and wait on termination or run and return to VFP immediately. it also allows you to monitor the execution and temrination code of what it starts, and to terminate processes it starts if they hang.

Since it doesn't use the Shellexecute(), it won't launch a document automatically with its default application, but that can be done IAC using the Shell.Application automation object's Open method.
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