Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wordpad
Message
De
26/06/2009 09:09:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01408612
Message ID:
01408624
Vues:
55
Hi Ronald,

why don't you use the shell32.dll function 'shellexecute' to tell windows 'open this textfile' and let the user decide, which programm has to be associated with this type of datafiles?

>In our appliacation, various reminders to the user are recorded in a text file in their documents folder and we programically start notepad when the user wants to refer to them.
>
>Presently i use the following with any indication as to the path to notepad.exe
>
>
run /n notepad "path\filename"
>
>However, now the request is to use wordpad! How can I activate wordpad?
>
>On my computer it is located in the "program files\windows NT\accessories" and have to include that in the run command by having
>
>
run /n (path\wordpad.exe)  "path\filename"
>
>
> However, I do not know if all workstations will have it located in the same folder.
>
>I suppose I could make sure it is located in a common directory on each workstation, however, I was hoping that there would be some generic way to call wordpad that would work on all xp workstations.
>
>Thanks in advance
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform