|
-
March 8th, 2005, 10:35 AM
#1
In which way to get the host name?
I need to get the host name of the local PC/Workstation, so I can use the:
Dns.GetHostName() or Environment.MachineName
What is the difference between the two? when I read the documentation I couldn't decide which one to use.
I must say the the PC may not be connected to the Internet/Intranet.
Which one should I use?
Is there any other way to get the local host name which is better then the above two?
-
March 8th, 2005, 05:05 PM
#2
Re: In which way to get the host name?
I think "Environment.MachineName" would be better (if U want netbios name).
Best regards,
Krzemo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|