如何获取Windows程序文件路径 [英] How to get the windows program files path
本文介绍了如何获取Windows程序文件路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,
请告诉我如何使用java获取Windows Xp程序文件路径
Dear all,
Please tell me how to get the Windows Xp program file path using java
推荐答案
看看文件下的方法 class。
看一下文件类。
文件类无法选择获取Windows目录的PAth,如
C:/ programfiles
File Class cant have the option such getting the PAth of windows directory like
C:/programfiles
阅读System.getProperties方法的API规范,找出可用的内容。
Read the API specs for the System.getProperties method to find out what''s available.
这篇关于如何获取Windows程序文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文