How do I know where "Program Files" are?
I'm working on a custom installer / launcher in pure Java. How can I tell the path to开发者_如何转开发 "Program Files" or its equivalent?
By calling the following:
System.getenv("ProgramFiles");
will give the path of the programfiles folder in Windows operating system.
精彩评论