Martin Vajsar wrote:There should be a Windows function to obtain any of the special folders (I assume identified by some integer constant), which probably would be preferable, as it would save you from interpreting the registry (there are endless possible setups of Windows, and in some of them the value could be not there, for example). You might search MSDN for such function and call it via JNA.
Whatever you say buddy! And I believe this tiny ad too:
Two software engineers solve most of the world's problems in one K&R sized bookhttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton