Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get current computer name C#

System.Environment.MachineName //from a console or WinForms app.
HttpContext.Current.Server.MachineName //from a web app
System.Net.Dns.GetHostName() //to get the FQDN
 
PREVIOUS NEXT
Tagged: #current #computer
ADD COMMENT
Topic
Name
8+4 =