gethostbyname

  • Thread starter Thread starter Jason
  • Start date Start date
J

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
 
Jason said:
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)
///
 
Back
Top