Home All Groups Group Topic Archive Search About
Author
13 Feb 2006 9:17 PM
Jason
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

Author
13 Feb 2006 10:29 PM
Herfried K. Wagner [MVP]
"Jason" <ja***@someone.com> schrieb:
> 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

\\\
Console.WriteLine(Environment.MachineName)
///

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