I'm working on some .BAT stuff created in a legacy application, which uses many environment variables. I need to kwnow 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 iformation (there are variables abscent, 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 varialbe, but no a comprehensive and centralized list of all.

Anybody knows where is that documentation available?

link|improve this question
I would say there isn't one; any app can use any variables it likes. – Ignacio Vazquez-Abrams Dec 2 '10 at 19:04
1  
@Néstor: Simply typing set in a command prompt lists quite a few, including all you mentioned. They all seem fairly easy to understand. – oKtosiTe Dec 2 '10 at 19:10
1  
Updated my answer to include a link too. – SgtOJ Dec 2 '10 at 20:07
+1 @moab - Posted the same link without noticing. Got it from Wikipedia? – SgtOJ Dec 2 '10 at 20:08
show 2 more comments
feedback

4 Answers

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.

link|improve this answer
feedback

No complete list either but this link may already help to detect the OS you have: http://support.microsoft.com/kb/190899

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

link|improve this answer
feedback

Here! This is the x64 list of known variables. I found it because I needed help with a list. I also just posted it here if you still need it.

Variables List Windows 7 x64

or run a search on this site for Variables List

here is the actual site

http://social.technet.microsoft.com/search/en-us?query=known+variables+for+64bit+windows+7&x=0&y=0

link|improve this answer
feedback

So, there is no official set of predefined environment variables for any specific Windows OS. At least not published in the web. Thanks for the other answers.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.