Results 1 to 5 of 5

Thread: Get Server name with API

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Glasgow, Scotland
    Posts
    4

    Get Server name with API

    Can I get the server name I am hooked up to using an API call or is ther another method of doing it ?

    Thanks in advance.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Check out the Network/Internet section of this link
    http://www.freevbcode.com/default.asp

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    I just found this one too. It might have potential for what you want.

    http://www.vb2themax.com/Item.asp?Pa...at=1700&ID=197

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Glasgow, Scotland
    Posts
    4

    Thanks

    Thanks Hack!

  5. #5
    Junior Member
    Join Date
    Nov 2001
    Location
    Dallas, TX
    Posts
    17
    Dim strCompName, strDomain, WshNetwork

    Set WshNetwork = WScript.CreateObject("WScript.Network")

    StrCompName = WshNetwork.ComputerName
    StrDomain = WshNetwork.UserDomain

    This may or may not help... but I hope it does..

    Josh

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