How to get Desktop path?

FileSystemView fsv = FileSystemView.getFileSystemView();
String desktopPath = fsv.getHomeDirectory().toString();

Guess you like

Origin www.cnblogs.com/longmenzhitong/p/11116098.html