[so] variabile de mediu (windows)

Vlad Cananau vladk2k at gmail.com
Fri Nov 2 02:52:56 EET 2007


Am o problema in a folosi variabilele de mediu pe windows (masina virtuala
pusa la dispozitie pe site):

exista (verificabil cu set) variabila de mediu "HOME" ("/home/so")
aceasta variabila este vizibila atat in command prompt normal, cat si in
Visual studio command prompt
Nu apare la environment variables (Control Panel -> System -> Advanced ->
Environment Variables)
insa, daca incerc sa rulez GetEnvironmentVariable pe ea, primesc eroarea "The
system could not find the environment option that was entered"
Pentru alte valori (de exemplu, "ls $WINDIR") totul merge foarte bine.

Am vazut ca in testele disponibile pe site se face verificarea variabilelor
de mediu cu $HOME - cum trebuie de ci tratat cazul pe windows

___
Vlad Cananau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20071102/fe89ab12/attachment.htm


More information about the so mailing list