Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wordpad
Message
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:
01408618
Vues:
78
A quick and dirty solution
lcWPFullName  = ["] + GETENV("ProgramFiles") + "\Windows NT\accessories\Wordpad.exe" + ["]
IF FILE(lcWPFullName)
	RUN /N &lcWPFullName
ELSE
	RUN /N Notepad.exe
ENDIF		
>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform