Click to See Complete Forum and Search --> : Accessing System variables
scullee
Mar 4th, 2001, 09:06 PM
I need the value of one of the NT system variables from under ASP (VB Script) ... does anyone know how to do this??
I know its a stupid thing to need to do but i have been asked
scullee
Mar 4th, 2001, 10:10 PM
I finally worked out how to do it.
set WshShell = CreateObject("WScript.Shell")
strWebTemp = "c:\webtemp"
getTempFilename = WshShell.ExpandEnvironmentStrings("%webtemp%")
set WshShell = nothing
Thanks anyway guys
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.