Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open any file
Message
De
25/06/2000 15:40:03
 
 
À
25/06/2000 15:18:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00384439
Message ID:
00384441
Vues:
37
>Halo all.
>How to open any file, like Explorer do this.
>I want to open files to Excel,Word,Powerpoint,other softwer grapics.

Look ast the ShellExecute() API call; it's available from a class in the FFC called _ShellExecute in _ENVIRON.VCX, or by direct use of the API call declared in VFP. Unfrortunately, you have no way to control the application opened to manipulate the file, or detect when you've finished with the file; there's a more complex version called ShellExecuteEx() available through the API, but it requires construction and understanding of a moderately complex structure and the application of several other API calls to use it.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform