Philipp said:
I just now it from "My Documents". This is the System Property "user.home".
The actual locations of those folders would be stored in the system registry,
which can be read with native Windows functions. You'd need to use JNI, or look
on Google for a package that is already written that uses JNI to do it. I
haven't had the occasion to look for such a package, but I know they're out
there.
Here's a Google query that should work:
java "windows registry"
(make sure you enclose "windows registry" in double quotes)
Also, after clicking around a bit, I found:
http://www.lattelib.com/
The Windows library provides a Java class that can query and set registry
settings and environment variables. (I'd use JNI to query/set environment
variables, myself, but... this library might be useful for the registry
features. Haven't tried it myself yet.)
--
JustThe.net - Apple Valley, CA -
http://JustThe.net/ - 888.480.4NET (4638)
Steven J. Sobol, Geek In Charge / (e-mail address removed) / PGP: 0xE3AE35ED
"The wisdom of a fool won't set you free"
--New Order, "Bizarre Love Triangle"