Question

Location of winword.exe

Asked by: VCGuru

1. How do I know where exactly in my machine is winword.exe located(The path)?.
2. I'd like to get the path for excel too!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2000-02-01 at 20:03:29ID10288690
Topic

Windows 95 Operating System

Participating Experts
11
Points
30
Comments
33

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. winword.exe
    Iwas trying to free up some disk space and I deleted winword.exe for microsoft word. I really need to use word and I can't seem to find a SPECIFIC area in microsoft.com or anywhere else where I might be able to download it and get back to work. I have windows 95 Any suggest...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: LoboPosted on 2000-02-01 at 20:18:21ID: 2480737

Two easy ways:

1. Open Windows Explorer and go to Windows>Start Menu>Programs and look for the Winword shortcut, right-click on it and select Properties and then the Shortcut tab. The "Target" box should give you the path to the actual .exe. Do the same for Excel.

2. Go to Start>Find and type winword.exe and excel.exe respectively.

Good vibes!!!!

 

by: nascar_3Posted on 2000-02-01 at 20:24:52ID: 2480750

Lobo's way is a good answer, but an alternative would also be:

Go into Windows Explorer
Highlight the root drive icon (C:)
Go to TOOLS > FIND > FILES & FOLDERS
Search for winword.exe and excel.exe

When they pop up in the result window it will show you the full path.

 

by: VCGuruPosted on 2000-02-01 at 20:34:33ID: 2480778

No please do not mistake me, I want to find it programmatically, Is there any way you can search for the same in the registry?

 

by: clim1219Posted on 2000-02-01 at 20:46:44ID: 2480800

In the registry, you can find it at the location below:

HKEY_CURRENT_USER\Software\Microsoft\
Office\9.0\Word\Options\PROGRAMDIR

 

by: VCGuruPosted on 2000-02-02 at 00:13:57ID: 2481167

This may not be the same in all machines

 

by: ben_condePosted on 2000-02-02 at 01:37:36ID: 2481352

The best answer by far is to run the find files & folders application from the start menu, select "lookin" and select "my computer" once this is selected in the "named" bar type in "winword.exe" click on find, diplayed in the botton of the window will be winword.exe, next to the icon will be the location of the folder. My guess would be C:\program files\msoffice\office\winword.exe. Follow the same process for "excel".

I hope this helps

Ben

 

by: clim1219Posted on 2000-02-02 at 02:02:31ID: 2481385

yeh, it may not be the same in all machines, but you can search for it using PROGRAMDIR as the search phrase.

 

by: VCGuruPosted on 2000-02-02 at 02:44:46ID: 2481473

That's right but I can't do this programmatically, I'll have to do something with the registry only. I can use some API's to read from the registry if I know the path.

 

by: TikshyaPosted on 2000-02-02 at 03:56:18ID: 2481654

Location in registry:

Key: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinWord.exe"
Value name:
"Path"
Value type:
"String"

Similarly for Microsoft Excel, replace "winword.exe" by "excel.exe"

It will work even in the following scenarios:
1. any version of word/excel,
2. any win32 environment( 95/98/3.11), even win 3.1,
3. any user login
etc.

Best regards
Tikshya

 

by: VCGuruPosted on 2000-02-02 at 04:04:18ID: 2481679

That's right but I can't do this programmatically, I'll have to do something with the registry only. I can use some API's to read from the registry if I know the path.

 

by: ZoppoPosted on 2000-02-02 at 05:10:48ID: 2481874

Hi VCGuru,

If you can make sure you have an existing word (or excel) file you could use API function FindExecutable().

Otherwise read the default value of key in ' HKEY_CLASSES_ROOT \ .doc ', should be something like 'Word.Document.8'. With this you can open a key like ' HKEY_CLASSES_ROOT \ Word.Document.8 \ shell \ open ' where you can find the whole executable path for winword. Proceed the same way for excel.

hope that helps,

ZOPPO

 

by: st_stevePosted on 2000-02-02 at 05:17:45ID: 2481891

I know how to check "whether" MS office products are installed (from VB)...but I wouldn't know how to check "where" they're installed...if you want to check whether they are installed, let me know...I'll post the code...maybe knowing they are installed is one step closer to knowing where they're installed, huh??

 

by: BrainMasterPosted on 2000-02-02 at 14:18:55ID: 2483791

Tikshya answer:

Location in registry:
Key: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinWord.exe"
Value name: "Path"
Value type:  "String"

Similarly for Microsoft Excel, replace "winword.exe" by "excel.exe"

VCGuru responce:
That's right but I can't do this programmatically, I'll have to do something with the registry only. I can use some API's to read from the registry if I know the path.


Perhaps I'm missing something in your question but tikshya's answer is totally within the registry and can be  retrieved programmically.

 

by: VCGuruPosted on 2000-02-02 at 19:41:19ID: 2484405

Hi st_steve,
I'd like to have the code in VB. I'll increase the points appropriately if it suits my purpose,

Hi Zoppo,
thanks, I'll get back to you very soon,

Hi Tikshya
It works fine but with a hitch, Some of the machines here have word 6.0 The Registry strangely does not have winword.exe in the path you have mentioned.

 

by: VCGuruPosted on 2000-02-02 at 19:48:35ID: 2484421

Hi st_steve,
I'd like to have the code in VB. I'll increase the points appropriately if it suits my purpose,

Hi Zoppo,
thanks, I'll get back to you very soon,

Hi Tikshya
It works fine but with a hitch, Some of the machines here have word 6.0 The Registry strangely does not have winword.exe in the path you have mentioned.

 

by: st_stevePosted on 2000-02-02 at 23:42:05ID: 2484830

will dig out the code....give me a few hours....it's on a CD-R that I've written to somewhere.....

 

by: VCGuruPosted on 2000-02-03 at 00:30:43ID: 2484933

cool

 

by: VCGuruPosted on 2000-02-03 at 01:31:05ID: 2485076

cool

 

by: st_stevePosted on 2000-02-03 at 02:51:47ID: 2485251

VCGuru...I got some bad news...I found the CD-R that I've written the source code onto...but it seems I scratched the CD-R unknowingly...and I can't read the thing properly anymore.....

It's been a long time..and I even don't remember how I did that...I think I called some APIs but I can't seem to remember what....anyway...I think it's better for you to wait for an answer from some other experts....sorry I got your hopes up.....:(

 

by: BrainMasterPosted on 2000-02-03 at 09:18:56ID: 2486710

word 6.0 is a win3.1 program so it might not be in the registry, perhaps you need to make it a special case.

 

by: SSchmidtPosted on 2000-02-05 at 16:50:39ID: 2493401

go on the explorer on you drive c:\programs\micosoft office\office there you find your winword.exe and exel.exe. thats all

 

by: BrainMasterPosted on 2000-02-05 at 20:40:09ID: 2493604

it's not always c:\programs files\Microsoft office\office, example I have no programs on my c: at all, it's my boot parition. I have it installed on d:\ and I'm pretty sure the installer allows you do choose the path to install it.

 

by: SunBowPosted on 2000-02-09 at 17:20:21ID: 2506098

PLZ restate this a little.
You begin this as if q: is your personal PC, then it looks like you support someone anonymous.
In my case as a user, I may have many many versions of these products online, available, depending on when upgraded last, for I get multiple versions thru eMail as people upgrade, and quite often one cannot count on the new Office being able to read the old.  And then, don't forget the disparate varieties of Word readers.  Still, One machine near me now has three versions of Adobe's Reader, can read pdf's once launched, but O/S won't launch any from a browser at the moment (more work to do some day).

However...
If you cannot live with Lobo's check...
If you can MANAGE the environment, and have only simple issue involved, you might prefer to look at what the user 'wants' as the DEFAULT program to use for '.doc' files (word). Continuing, look in Registry for what user 'wants' as the 'default' program for eXplorer's '.xls' entries. Perhaps that is the version(s) of Office products you are interested in.

I don't think NT5 in a default hide-ext mode will defeat that either, but it isn't feb 17 yet.

 

by: tommy_bPosted on 2000-02-15 at 20:31:28ID: 2525637

hi VCGuru, good day
1.) click Start button, Find, Files or Folders.
2.) Name & Location, Named key in the winword.exe
3.) (waiting !!!) InFolder will displays the appropriate path. (normally, will be C:\Program Files\Microsoft Office\Office)

it will be the same for Ms Excel using the same method.
That's all

 

by: ZoppoPosted on 2000-02-16 at 00:52:26ID: 2526146

Hey tommy_b,

before answering a question you should even read the comments, not only the question...

ZOPPO

 

by: SunBowPosted on 2000-02-16 at 12:29:38ID: 2528718

At least read rejections?

 

by: SunBowPosted on 2000-02-16 at 12:49:57ID: 2528780

VCGuru,
         Done?
If not, how about this: what are you trying to do?  If this is not complex but simple q:, how about:
A) Select       Start/Run
       enter    WinWord
B) Select       Start/Run
       enter    eXcel

My question is, do you really need the path for something EXECUTABLE to splice in, or, do you fear it not being there by default when you need it, or what?

(above I ref: potential for multiple versions, needing more on the goal here)

C) Start/Program/Command Prompt
       Enter           WinWord
D) Start/Program/Command Prompt
       Enter           _______  (someone else can post this guess)

Could your question involve something on how to get __________ to launch some M$Office exe's, or do you need to stuff something into one of the eight file locations I have listed in Word under tools/options, or are you just trying to explore the registry (like for an inventory-type process), or what? Could you expand further on your feb 2 comeent:
"..do this programmatically, I'll have to do something with the registry only. I can use some API's to read from the registry if I know the path."
Is this what you 'think' you must do?
ie, what is it that you must do.

 

by: SunBowPosted on 2000-02-16 at 14:02:39ID: 2529017

Zoppo - I did not mean to add redundancy to your February 02 2000 post

As this stands, I guess there may remain something for VCGuru on API function FindExecutable(). Sounds good, but I haven't the experience.

but for FYI, on my NT WinWord (and eXcel similar),

' HKEY_CLASSES_ROOT \ Word.Document.8 \ shell \ open '

needs appended an
' \ command '
which then shows
"C:\microsoft office 97 professional\Office\Winword.exe" /n

which looks to be the answer if one can manage / admin a LAN to where one can count on that version, for in the same registry chain of 'Word.Document.8' I also have others, like 'Word.Document.6'.   So,

VCGuru,

Now, under HKLM's
SOFTWARE/Classes/.doc & SOFTWARE/Classes/.dot
I have a default of: "Word.Document.8"

Which would appear to be the way to flip the coin on which of the selections in HKEY_CLASSES_ROOT to check for path for office_ware; if one insists on doing so through such reg entries.

If it was me, I'd check out the "API function FindExecutable()" [Zoppo] first, for it sounds easier to manage (but I don't have time today).

 

by: SunBowPosted on 2000-02-16 at 14:39:35ID: 2529123

a sidebar,
a) use file search listed above, find WinWord
b) right click name
c) left click properties
d) path lies under "location"

At this stage it seems to me that reproducing this is code like VB is second part of question.

While 1st part of question is which of potentially many WinWord's to choose from.  

As I suggest using the default for launching .doc's, I am leaving an open issue for this being mapped to alternatives like WordPad, NotePad, or even nothing at all.  This must be handled in the code.

 

by: SunBowPosted on 2000-02-16 at 15:07:56ID: 2529188

VCGuru,
For Registry: "where exactly in my machine is winword.exe located(The path)?":

Try RegEdit to HKLM:
SOFTWARE/Microsoft/Windows/CurrentVersion/App Paths/<filename(s)>

Value Name Path should give you the goods on Office that you are looking for. This value won't likely need editing.  For more apps, you are better off with the Name (Default) which has both path and executable.  Of course you'll have to truncate the filename part, but on my systems, the Path is not always defined. (ex: WordPad).

This gives you main apps you are interested in, not ALL programs by any means.  It should be able to handle any wierd cases where the file extensions (classes in HKLM) have been redirected to other programs, or perhaps do not exist at all, and handle them without further intervention on your part.

 

by: ZoppoPosted on 2000-02-17 at 01:11:34ID: 2530355

The main problems with this are:

VCGuru want to determine the location of winword exe programmatically and independent from word's version. Older versions of Word do not set any registry key at all.

ZOPPO

 

by: SunBowPosted on 2000-02-17 at 10:13:56ID: 2532077

Well, shame on M$.
I suspected that 'some' handling of registry settings have changed over time (ex: "the Path is not always defined"), but also thought that M$ had touched registry somewhere for every app added to it.

I have one '95 with version seven indicated in that entry. Maybe they began this section for only MS-Office apps, and Word6 is not one of those animals. Credit where due, I just noticed that my 'app paths' note (16 Feb) was Tikshya's Feb 2 answer: "..It will work even in the following scenarios: 1. any version of word/excel...". I'll leave it for Tikshya to defend an entry for Word6. My Win31 was confiscated by the local beautification committee.

VCGuru
- has some handle if not control of users and how this program(s) will run.  If it is known by VCGuru that the user is running MsWord, if it is known that the version is either v6 or v8, then a binary test for 'is it v8' can allow for rejections to default to v6. Since I just noted that v7 appears to be equally testable/findable this way to v8, then we can refine the boundary for 'older versions'.

Strangely, if I click on a .doc in explorer it rings up Word7, while if I peek the reg at HKLM\SOFTWARE\Classes\.doc
I get a
(default) = "Word.Document.6"
So I confess that some of the logic of this escapes me.

Unfortunatey I remain unsure of what the goal or purpose is, where the program needs to know path in order to _________.   There might be other ways to skinnie this.

VCGuru - is this for a case where the user is actually running the WinWord.exe?  Or is it more like an inventory process, where you make no assumptions on what user may be running?

 

by: SunBowPosted on 2000-03-10 at 09:09:58ID: 2605265

Agree w/Zoppo
Clicking mouse, running programs (search) and performing manual key entry (type filename) is not only rather basic, it is generally not condsidered as a solution done programmatically.
It also fails for:
1) WinWord on other than c: (w/o mod to clone answer)
2) multiple file copies
3) identifying an .exe actually configured for user

The accepted answer is also generally considered no improvement over the 1st two submissions from Lobo and nascar_3. It is also inferior, especially to the rejected answer from ben_conde. Inferior since it was only a partially cloned response.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...