Well, I understood the solution, but maybe someone else has a more decent answer.
I plan to do something like "Runtime.getRuntime (). Exec (command);" and the command will be "reg query" to query the following registry keys:
: HKEY_CURRENT_USER\ \Microsoft\Windows\CurrentVersion\Explorer\ Folders\ ""
: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\ Folders\ ""
Win7 WinXP. - , .