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!

Spaces in File path of a command

807605Jul 25 2007 — edited Jul 25 2007
Hi all,

I have a problem in the following API

Runtime.getRuntime.exec
("open /var/root/Desktop/Test Folder/abc.jpg");

it does not open the file mentioned but the following command

Runtime.getRuntime.exec("open /var/root/Desktop/TestFolder/abc.jpg");

it opens the file abc.jpg. the only difference between these 2 commands is spaces in "Test Folder" directory name.

Please let me know if anybody has an idea.

thanks

Message was edited by:
nav_nini
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2007
Added on Jul 25 2007
5 comments
483 views