首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > winfolderpath

winfolderpath

  • 资源大小:511.70 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

WinFolderPath is a Java library used to find a CSIDL identified path on a Windows Machine such as My Pictures, My Music and more. WinFolderPath uses a Native dll interface to obtain the path. WinFolderPath is both 32 bit JVM and 64 bit JVM compatible. How to use: Example ``` import com.openviewdesign.winutility.WinFolder; public class Example { public static void main(String[] args) { try { WinFolder wf = new WinFolder(); String myDocuments = wf.getFolderLocation(WinFolder.CSIDL_MYDOCUMENTS); String myMusic = wf.getFolderLocation(WinFolder.CSIDL_MYMUSIC); String myPictures = wf.getFolderLocation(WinFolder.CSIDL_MYPICTURES); String myVideo = wf.getFolderLocation(WinFolder.CSIDL_MYVIDEO); System.out.println("Path to My Documents: " + myDocuments); System.out.println("Path to My Music: " + myMusic); System.out.println("Path to My Pictures: " + myPictures); System.out.println("Path to My Video: &quo

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • Dream 13分钟前 成为了本站会员

  • lsj2309 5小时前 成为了本站会员

  • 杨波 1天前 成为了本站会员

  • ZS 1天前 成为了本站会员

  • . 2天前 成为了本站会员

  • 奋斗 2天前 成为了本站会员

  • 2天前 成为了本站会员

  • 一天不玩浑身难受 3天前 成为了本站会员

  • Aloha 3天前 成为了本站会员

  • 嘻嘻嘻 3天前 成为了本站会员