Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win API to cofigure Application to use with an extension
Message
From
22/12/2000 19:15:33
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Win API to cofigure Application to use with an extension
Miscellaneous
Thread ID:
00456533
Message ID:
00456533
Views:
67
How can I using VFP and Win API
define what application should be used
to open a file ?

Supose I have Text Editors like Wordpad, Word
and StarOffice Word in a Network and each user
want to use a distinct product to open a file with
an .RTF extension created by VFP (RichText control)
and saved as a new file with the .RTF extension.

With which API I can define the application to open
the file ?

I want to use Wscript in VFP to open a .RTF file
this way:

ox = CREATEOBJECT("WScript.Shell")
ox.Run("C:\Mydir\text1.RTF", SW_NORMAL, .F.)

But, what I see is that the application must
configure the user preferences for a Text Editor
so I want to set up those preferences in the station,
when startig and VFP Application.

Could someone help me please ?

Other question: Is it possible to configure WordPad Menu
option's from VFP, Wscript or any other way ??

Thank's in Advance and Merry Xmas for All !!
Next
Reply
Map
View

Click here to load this message in the networking platform