How To Find the Full Path of an Executable Given the Extension (197192)
The information in this article applies to:
- Microsoft FoxPro for Windows 2.6
- Microsoft FoxPro for Windows 2.6a
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q197192 SUMMARY
Sometimes you might need to determine the full pathname to a Windows
executable file, such as Microsoft Word or Excel. Passing a file with the
desired extension, be it .DOC, .XLS, .PPT, etc. to the Windows API function
FindExecutable is one easy way to do this. You can use this function in
both 16-bit FoxPro for Windows and 32-bit Visual FoxPro.
REFERENCES
Win32 SDK Help; topic: FindExecutable For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
140724 PRB: FindExecutable() Truncates Result at First Space in LFN
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbAPI kbhowto KB197192 |
---|
|