tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 VB Script > Shell > Environment Variables

Environment Variables 

This example shows accessing environment variables

File Name  :  
source/VBS/shell/env.vbs 
Author  :  Sudhakar KV
Email  :  [email protected]

It gives the following output,
ComSpec=%SystemRoot%\system32\cmd.exe

FP_NO_HOST_CHECK=NO

JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10

NUMBER_OF_PROCESSORS=2

OS=Windows_NT

Path=C:\Program Files\Java\jdk1.6.0_10\bin;
C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;
.JS;.JSE;.WSF;.WSH;.PSC1

PROCESSOR_ARCHITECTURE=x86

PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 
Stepping 10, GenuineIntel

PROCESSOR_LEVEL=6

PROCESSOR_REVISION=170a

TEMP=%SystemRoot%\TEMP

TMP=%SystemRoot%\TEMP

windir=%SystemRoot%


JAVA_HOME ==> C:\Program Files\Java\jdk1.6.0_10



 
  


  
bl  br