Board index » VBScript
All times are UTC
How do I get the default Temporary Folder in VBScript....
set wshObj = CreateObject( "WScript.Shell" ) set ev = wshObj.Environment( "SYSTEM" )
MsgBox ev("TMP")
You can use Set to get a Folder object or use it as a variable to get the path.
Dominic Marks
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