Getting Environment Variables 
Author Message
 Getting Environment Variables

How do I get the default Temporary Folder in VBScript....



Sun, 23 Mar 2003 03:00:00 GMT  
 Getting Environment Variables
Something like this:

set wshObj = CreateObject( "WScript.Shell" )
set ev = wshObj.Environment( "SYSTEM" )

MsgBox ev("TMP")



Mon, 24 Mar 2003 03:00:00 GMT  
 Getting Environment Variables
Dim FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
 MsgBox FSO.GetSpecialFolder(2)
Set FSO = Nothing
<

You can use Set to get a Folder object or use it as a variable to get the
path.

Dominic Marks



Wed, 26 Mar 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Getting Environment Variables

2. Getting Environment Variables

3. SETTING & GETTING environment variables in VB 4.0 ?

4. Getting environment variables using VBA in Excel 5.0c???

5. Getting NT username environment variable

6. getting an environment variable

7. environment variables: wshshell.environment or wshshell.expandenv ironmentstrings?

8. Getting data values to CR from variable arrays and stand alone variables in VB

9. Creating and environment variable and using it in the same cmd window

10. Environment variables in postscript templates

11. Environment Variables

12. Using RedMon environment variables to get original Document Name

 

 
Powered by phpBB® Forum Software