how to find the full path of powerpoint.exe?

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.
 
R

Real Gagnon

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?

You don't really need it, you can Runtime.getRuntime().exec(cmd) the
following command to achieve this without the actual path of Powerpoint :

String cmd = "rundll32 url.dll,FileProtocolHandler myfile.ppt";

or

//win9x
String cmd = "start myfile.ppt";

or

//winnt or better
String cmd = "cmd /c start myfile.ppt";

Bye.
 
C

csdev

Real Gagnon said:
You don't really need it, you can Runtime.getRuntime().exec(cmd) the
following command to achieve this without the actual path of Powerpoint :

String cmd = "rundll32 url.dll,FileProtocolHandler myfile.ppt";

or

//win9x
String cmd = "start myfile.ppt";

or

//winnt or better
String cmd = "cmd /c start myfile.ppt";

Bye.


Real Gagnon,

Thanks for your reply. I am actually trying to open a .htm file using
power point. If I do the above a browser is activated.

-Cathy.
 
A

Andrew Thompson

....
..I am actually trying to open a .htm file using
power point. If I do the above a browser is activated.

It would be more successful on my system than
attempting to open a non-existent PowerPoint.

But then.. why on Earth would you want to load
an HTML file into PowerPoint in any case?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top