esfalk Posted April 19, 2004 Share Posted April 19, 2004 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! Link to comment Share on other sites More sharing options...
esfalk Posted April 19, 2004 Author Share Posted April 19, 2004 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" ? Link to comment Share on other sites More sharing options...
CyberSlug Posted April 19, 2004 Share Posted April 19, 2004 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now