Env. vars in different versions of DOS/Windows

A

Alexander Suhovey

Hello everyone,

Some time ago I've found on the Internet a definitive table of
predefined environment variables available in different versions of
Windows but cannot seem to find it now. Does anybody happen to have a
link to such a table?

I'm specifically interested in comparative table that shows exactly what
is available and what is not in specific version of MS-DOS/Windows.
Thanks.
 
A

Alexander Suhovey

Alexander Suhovey said:
Hello everyone,

Some time ago I've found on the Internet a definitive table of
predefined environment variables available in different versions of
Windows but cannot seem to find it now. Does anybody happen to have a
link to such a table?

I'm specifically interested in comparative table that shows exactly what
is available and what is not in specific version of MS-DOS/Windows.
Thanks.

Found it:
http://www.scriptlogic.com/support/CustomScripts/environmentVariableReference.html
 
J

John John

Alexander said:
Care to elaborate?

Nothing major I suppose, but at a cursory glance I see that some
variables are not shown (green dots) as NT4 variables, such as:

UserDomain
UserName
UserProfile

I know these to be NT 4.0 variables, at least they are with the later
service packs. Maybe it's just a typo or omission in the list, but it
does lead one to wonder what other errors might be in the list.

In a mixed environment one assigned a task of witting a script to work
on different machines might be misled to thinking that the script would
fail or be invalid for different machines, without an installation with
the target operating system to test, the script a writer might be doing
work or searching for answers for naught.

John
 
E

Eman

John John said:
Alexander Suhovey wrote:

Nothing major I suppose, but at a cursory glance I see that some variables
are not shown (green dots) as NT4 variables, such as:

UserDomain
UserName
UserProfile

I know these to be NT 4.0 variables, at least they are with the later
service packs. Maybe it's just a typo or omission in the list, but it
does lead one to wonder what other errors might be in the list.

I could add, under XP (at least) there are differences
for predefined variables for the SYSTEM "user" profile.
In particular, UserName and UserDomain aren't set for it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top