Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run default program
Message
From
09/12/1999 20:28:29
 
 
To
09/12/1999 01:43:54
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00300855
Message ID:
00301444
Views:
19
>Hi ,
> Can Foxpro run the default program with command line ?
> Such as ! abc.txt or winexec ("abc.txt") then open notepad.
> I try some methods but fail.

Your best approach to launching a document using its registry association is through the ShellExecute() API - VFP6's FFC has a class that implements ShellExecute(). There are also numerous examples in the FAQ and previous threads that show how the API call is used.
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
Next
Reply
Map
View

Click here to load this message in the networking platform