12

I'm working on some .bat stuff created in a legacy application, which uses many environment variables. I need to know exactly what is every one of them (%windir%, %os%, etc.).

So I need the official Microsoft Documentation about the System Environment Variables of Windows (at least from the NT version).

I've reading some sites with partial information (there are variables absent, such as %os%), so I really want to look at the Official info.

Searching with Google, Bing and inside the MSDN site give just reports about one or other variable, but no a comprehensive and centralized list of all.

Anybody knows where is that documentation available?

fixer1234
  • 27,064
  • 61
  • 75
  • 116
Néstor Sánchez A.
  • 761
  • 2
  • 8
  • 13

3 Answers3

4

While not official the best functional reference I've seen, that has been reliable and kept up to date for many years, is SS64 http://ss64.com/nt/syntax-variables.html. It includes undocumented variables and OS version specific info.

matt wilkie
  • 5,015
  • 23
  • 57
  • 85
3

Site? Maybe not? Try this link. The list even breaks it down to what OS can use it. The variable will look a little different. That is only because it is missing the percent signs that are at the beginning and end.

Still not happy? Try this opening Command Prompt and type set and hit enter. It will list all the variables. As with the site listed above, the variable here will also look a little different.

SgtOJ
  • 7,267
  • 5
  • 47
  • 64
0

No complete list either but this link may already help to detect the OS you have.

Typing set in cmd.exe for getting a list of all really used variables on your system is known I assume?!

Paul π
  • 59
  • 7
Michael S.
  • 3,987
  • 8
  • 42
  • 64