Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wordpad
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01408612
Message ID:
01408618
Views:
79
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform