[gameprogrammer] Re: obtaining user directory

Im using C++. In linux seems to be easy via getenv, querying for $HOME. But I cant find if win has some similar variable.

Juan Ignacio Albanesi escribió:
Hi,
you can obtain it from enviroment variables:

echo %USERPROFILE% (in a console cmd.exe)

depending on your programming language there are some variuos ways to obtain system enviroment variables

more info:
http://en.wikipedia.org/wiki/Environment_variable

Saludos


--
http://dsgp.blogspot.com | Linux, programación, juegos
Have no place I can be since I found Serenity
But you can’t take the sky from me

                
______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: