[gameprogrammer] Re: obtaining user directory

in C++ is the same with getenv, the %USERPROFILE% gives you: X:\Documents
and Settings\[user name]
my documents is in there. You should notice that the "My Documents" folder
changes acording the localisation of each windows (eg: in my machine it's
name "Mis Documentos" instead of "My Documents")
I think you should use only %USERPROFILE% without the My Documents folder

Saludos

Other related posts: