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)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top