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

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

winfolderpath

  • 资源大小:511.70 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分: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
0.173976s