By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,236 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

gethostbyname

P: n/a
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
Feb 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"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/>
Feb 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.