« Movie Review: War of the WorldsCocoa vs. C#, Part 3: Memory Management in Cocoa »

Mining the Windows environment

06/29/05

Permalink 10:48:53 am, by rekle Email , 80 words   English (US)
Categories: Windows

Mining the Windows environment

Just noticed some interesting things you can find in the Windows environment variables:

Environment VariableDescription
HOSTNAMEThe hostname of the PC
PROCESSOR_IDENTIFIERText string describing what type of CPU you have.
WINDIRWhat directory Windows is installed in.
PROCESSOR_ARCHITECTUREWhat type of processor it is (x86)
ProgramFilesThe directory where Program Files are located (i.e. 'c:\Program Files')
USERDOMAINYour Windows networking domain
USERNAMEYour Windows networking username
USERPROFILEWhat the current user's 'home directory' is
NUMBER_OF_PROCESSORSHow many CPUs are in the machine.

No feedback yet

May 2012
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Copyright © 2005 - 2012, Rick Ekle

Comments? Contact me at rick@ekle.us or visit me on Twitter at @rekle

Search

XML Feeds

User tools

powered by b2evolution