This discussion is archived
11 Replies Latest reply: Aug 16, 2007 8:03 AM by 807605 RSS

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

807605 Newbie
Currently Being Moderated
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