Jack said:
I mean Excel installed, not running.
You didn't say what program you want to use to check it, so there's no
single answer.
In a batch file, you could use the ASSOC command to see if the .XLS file
type has a file association. If it doesn't, either Excel is not
installed or it was not installed correctly. If it does, either Excel
is installed or it has been installed and then uninstalled (I'm not sure
whether the uninstall program deletes the entry). Once you know the
file association, you can use the FTYPE command to get the path to the
executable.
C:\Documents and Settings\Administrator>assoc .xls
.xls=Excel.Sheet.8
C:\Documents and Settings\Administrator>ftype excel.sheet.8
excel.sheet.8="C:\Program Files\Microsoft Office\Office\EXCEL.EXE" /e
This information is also available through the Windows API if you're
using VB (or other language that gives you access to the API).
As someone has already said, if you want to know whether Excel is
actually runnable, you'll have to try to run it.
==
Jack Hamilton
(e-mail address removed)
==
In the end, more than they wanted freedom, they wanted comfort and security.
And in the end, they lost it all - freedom, comfort and security.
Edward Gibbons