How can I get the current computer's "Program Files" path with Java?
Simply by calling System.getenv(...)
System.getenv(...)
System.getenv("ProgramFiles");
Notice it will only work in Windows environments, of course :-)
1.4m articles
1.4m replys
5 comments
57.0k users