Results 1 to 2 of 2

Thread: Accessing System variables

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    Melbourne Australia
    Posts
    6

    Angry

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    Melbourne Australia
    Posts
    6
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width