gethostbyname

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jason

    gethostbyname

    whats the proper way to get my computers name and display the string
    variable I asgin it to.

    dim pcName as string

    pcName = ...... gethostbyname
    \\write pcName to console

    What do I need to include to get the host name


  • Herfried K. Wagner [MVP]

    #2
    Re: gethostbyname

    "Jason" <jason@someone. com> schrieb:[color=blue]
    > whats the proper way to get my computers name and display the string
    > variable I asgin it to.
    >
    > dim pcName as string
    >
    > pcName = ...... gethostbyname
    > \\write pcName to console
    >
    > What do I need to include to get the host name[/color]

    \\\
    Console.WriteLi ne(Environment. MachineName)
    ///

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    Working...