I want to open power point application from java.
To be able to do this I need the full path of powerpoint.exe
I'm assuming you need to be able to find the path on any computer where your
code runs, not just your own.
Does Java allow you to ShellExecute a file (ie, via API call?) If so, just
ShellExecute a PPT or PPS file; the system will know to launch the file with
PPT or the viewer, whichever is registered to "own" the PPT/PPS extensions and
where to find it.
Or have a look here in the registry ... the subkeys below that should tell you
where PPT is installed (though perhaps not the viewer).
HKEY_CLASSES_ROOT\Applications\POWERPNT.EXE
ISTR that there's also an API call that tells you the name and path of the app
that "owns" a given extension.
--
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA
www.PowerPointLive.com
================================================