Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Runtime.getRuntime().exec()..What is Wrong?????

807606Jan 8 2007 — edited Feb 28 2007
Hi Friends,
I want to open a Excel file through Runtime.getRuntime.exec() command, when I'm doing :
Runtime.getRuntime().exec("cmd /C C:\\xyz.xls'");
It is opening xyz.xls file fine but when i'm doing
Runtime.getRuntime().exec("cmd /C '"+ filename +"'"); where filename is equal to C:\xyz.xls it is not working.
Any one has any idea about it.....Please help me;

Thanks in advance.

Raviji
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2007
Added on Jan 8 2007
12 comments
223 views