Get an Applications file path
Can Do
Goto Guest book sign in page [Home]
Thanks for visiting my site lucky visitor:
This page was last updated on: March 22, 2009
Copyright © 2002. XcelFiles. All Rights Reserved Ivan F Moala
Tell a friend about this page
Google
Search WWW Search My Site!

Whilst doing an addin for winzip (See image below - NB: not finished) within Excel there were a number of programing things I needed to get resolved (Also see here)

One of these was to get Winzips executable path, typically;

C:\Program Files\WinZip.

BUT ............. This maybe different on someone elses system!

Here is what I came up with. I could have done this using the registry as well.

Uses: Use this function when ever you need to find the path to the associated program that runs it eg Txt files maybe associated with Notepad.exe or Microsoft word or some other program.
This function will get any executables path to the program. Very useful when you may need to Shell out to another program on a users system or you may want to know what program is currently associated with a file/extension.