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 :-)
2.1m questions
2.1m answers
60 comments
57.0k users