General information
Category:
Windows API functions
Title:
Win API to cofigure Application to use with an extension
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only