AFAIK these should be visible only if you started the program from the command prompt.
Did you see them anyway ? I don't see them running your program from the IDE.
If I change it this way:
Code: Select all
OpenConsole()
If ExamineEnvironmentVariables()
While NextEnvironmentVariable()
PrintN(EnvironmentVariableName() + "=" + EnvironmentVariableValue())
Wend
EndIf
CloseConsole()
and I run it from the prompt then I see them.
BTW: they have a name, why do you think they don't have one ? Oh, maybe you saw only that one ?
They should be called "=C:" for C:, "=F:" for F: etc., so in your case you should try GetEnvironmentVariable() using "=::" as the name.
I'm not sure about that one... maybe it's some kind of placeholder ?
EDIT: ah, no, according to one of the answer (from Chen) -> "It's a bug in Windows that it created the bogus environment variable in the first place."
BTW, I don't see the "bogus" one. Win7 x64.
And yes, SET does not show them, probably because they are intended to be for private use of the command prompt.