Information générale
Catégorie:
Fonctions Windows API
Titre:
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 !!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement