Get Environment Variables from NT Server 
Author Message
 Get Environment Variables from NT Server

I have some ASP Pages with both VBScript and Jscript that I am doing some
file manipulation with.  I am currently using a static drive letter but I
would like to grab my NT Server Environment variables.  Does anybody know
how to look at environment variables using server side vbscript or jscript.


Mon, 24 Jun 2002 03:00:00 GMT  
 Get Environment Variables from NT Server

Set WshShell = CreateObject("WScript.Shell")
Set WshSysEnv = WshShell.Environment("SYSTEM")
WScript.Echo WshSysEnv("NUMBER_OF_PROCESSORS")

--
Michael Harris


  I have some ASP Pages with both VBScript and Jscript that I am doing some
  file manipulation with.  I am currently using a static drive letter but I
  would like to grab my NT Server Environment variables.  Does anybody know
  how to look at environment variables using server side vbscript or jscript.



Mon, 24 Jun 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting NT username environment variable

2. Adding an environment variable to a remote server (or servers)

3. Getting Environment Variables

4. Getting Environment Variables

5. getting an environment variable

6. help with nt username or environment variable.

7. Accessing Client Environment Variables on Windows NT workstations

8. Help: Environment variables with windows NT...

9. Environment variables with windows NT...

10. VBScript in NT Server environment

11. VBScript in NT Server environment

12. Use Server Environment Variables

 

 
Powered by phpBB® Forum Software