Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call Internet Explorer not using Activex?
Message
De
10/01/2002 06:05:59
 
 
À
09/01/2002 21:27:37
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00602810
Message ID:
00602895
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
>Thanks, that works. Could you help me to know how to open a .TXT file in a similar fashion?

Another way if you do not want to use MS WOrd t open a simple TXT file, is to use the Windows Script Host. MSWord may be a little heavy for such a sumple job or may not be installed at your client's. WSH could be installed or else it is easy to install (and free).
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
oShell = createobject("WScript.Shell")
oShell.Run("notepad.exe myfile.txt",SW_SHOW_NORMAL,.T.)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform