Sign in to follow this  
Followers 0
esfalk

Find Excel.exe

3 posts in this topic

Sometimes the Excel executable file is located in different locations on different machines, and this causes potential problems for my Run () function. Is there a way to read the registry, or access some other information on the machine to know where the EXCEL.exe file is prior to attempting to run it?

Suggested code?

Many, many thanks!

Share this post


Link to post
Share on other sites



Well, the file I'd like to access is on a mapped drive of another server. In this case, would $a="U:/folder/Book1.xls" ?

Share this post


Link to post
Share on other sites

The most recent unstable AutoIt version supports reading registry keys on remote computers, IIRC. There are usually two keys you can check for Excel:

The first key is the reason why Larry's Start trick works.

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Excel.exe"

The second key is possibly less reliable; you need to change the version number: 9.0 = Office 2000, 10.0 = XP, 11.0 = 2003 [or something like that]

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\10.0\Excel\InstallRoot"


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0