Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Cincinnati, Ohio
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Capture hostname in Outlook form (2003)

    I am creating a form for our helpdesk to use for simple IT requests. I would like to capture the hostname of the computer sending the request form. Is there a way to do this? I have tried using %hostname% within a text box and also as the coontrol source but so far I'm not getting anywhere. Any help would be appreciated. Thank you! Scott

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Capture hostname in Outlook form (2003)

    In the old days, you could use VBScript and some objects supplied by the Windows Script Host. However, security restrictions might not allow this. To capture the "computer name," see this page on MSDN: WshNetwork Object (ignore the tags around the <script> tag; it's what's inside that is relevant). For much, much more information on scripting Windows, see http://msdn.microsoft.com/scripting/.

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Capture hostname in Outlook form (2003)

    If %hostname% is an environment string variable, you can also use the ENVIRON statement to fill the field (I don't use Outlook forms so the syntax may need work):

    strFormHostName = ENVIRON("hostname")
    -John ... I float in liquid gardens
    UTC -7ąDS

  4. #4
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Cincinnati, Ohio
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Capture hostname in Outlook form (2003)

    Sorry for the delay in responding. Thank you for your time and help! - Scott

Posting Permissions

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