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!

How to get Path for C:\Program Files for any locale

807605May 15 2007 — edited Aug 16 2007
Hi Friends,

I want to access a folder MSOfice which resides inside "C:\Program Files". this path is different as per different locale like "C:\Programme"

To access C:\Program Files I tried
System.getProperty("os.home"); 
System.getProperty("user.dir"); //return user working directory
what else I use to get path "c:\Program Files"

Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 13 2007
Added on May 15 2007
11 comments
1,399 views