[so] [tema1] windows - problema GetEnvironmentVariable
Ionut Daneasa
ionut.daneasa at gmail.com
Mon May 4 20:06:48 EEST 2009
LE:
daca setez eu variabila cu SetEnvironmentVariable, mi-o vede. Deci daca in
minishell execut MYVAR=3 ; echo $MYVAR imi merge;
insa nu vede variabilele mostenite de la environment.
---------- Forwarded message ----------
From: Ionut Daneasa <ionut.daneasa at gmail.com>
Date: 2009/5/4
Subject: [so][tema1] windows - problema GetEnvironmentVariable
To: so at cursuri.cs.pub.ro
salut,
nu-mi merge GetEnvironmentVariable in sensul ca nu-mi pune nimic in lpBuffer
si in plus si valoarea returnata (lungimea stringului e 0). E chiar aiurea
pentru ca de exemplu daca rulez in cygwin echo $USER imi returneaza
Administrator, dar daca fac acelasi lucru in cu GetEnv... nu-mi aduce nimic.
Any ideas?
merci,
Ionut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090504/84f96fd6/attachment.htm>
More information about the so
mailing list