how to find the path of powerpoint.exe

  • Thread starter Thread starter csdev
  • Start date Start date
C

csdev

Hi All,

I want to open power point application from java.
To be able to do this I need the full path of powerpoint.exe

How can I find this?

Thanks,
Cathy.
 
Locate the file in Windows Explorer. It's probably in your C:\Program
Files\Microsoft Office\Office folder. A handy tool for capturing the full path
of a file to the clipboard is Copy Path at http://www.bergenstreetsoftware.com/.
Install it, right click a file and select Copy Path from the menu and then "Copy
full Path". Now just paste it into your java code. Copy Path saves on typing
and typos.
 
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
================================================
 
Cathy,
Use the CreateObject method supported by Java to instantiate PowerPoint and
turn the state to visible.
 
Back
Top