Location of Word on the machine

J

Junaid

He everyone,
I don't know where to post this message so if you know of a better place,
please guide me. I want to know how to find the location of Word executible
on a machine; either through registry or any other means. This has nothing
to do with VBA but I thought vba people might know more about the issue.

I would appreciate any input.

Thanks
Junaid
 
J

Junaid

I'm sorry I didn't make myself clear enough. I'm trying to find that out in
Powerbuilder where you can issue a Windows system command saying
Run(executible_name.exe parameter ...). So the only thing I can think of
here is finding out through registry if Word is installed on the machine.

If anyone know how to get the path to Word through registry, please let me
know.

Thanks
Junaid
 
J

Jay Freedman

Hi, Junaid,

Look for the keys

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\8.0\Word\InstallRoot
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\9.0\Word\InstallRoot
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\10.0\Word\InstallRoot
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Word\InstallRoot

If you find one of those keys, look inside it for the value named Path. That
value will contain the name of the folder where you should find winword.exe.

The key you find also will tell you the version of Word, where
8.0 = Word 97
9.0 = Word 2000
10.0 = Word 2002
11.0 = Word 2003
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top