Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Win API to cofigure Application to use with an extension
Message
De
22/12/2000 19:15:33
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Win API to cofigure Application to use with an extension
Divers
Thread ID:
00456533
Message ID:
00456533
Vues:
68
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
Fil
Voir

Click here to load this message in the networking platform