开发者

How do I know where "Program Files" are?

开发者 https://www.devze.com 2023-03-04 05:36 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消