Software Development Network>> Visual C#>> How to get the computer name using C#?
Hi all,
Does anyone know how to get the computer name using c#
Thanks
Try using this
i cannot use the
"System.Environment.MachineName " .
some one told me to use=
using
WindowsIdentity.GetCurrent().Name.ToString();
but the last line isn't working.
plz, i need this solution.
System.Environment.MachineName
How to get the computer name using C#?
Hurm
Try using this
RussNem
i cannot use the
"System.Environment.MachineName " .
some one told me to use=
using
System.Security.Principal;WindowsIdentity.GetCurrent().Name.ToString();
but the last line isn't working.
plz, i need this solution.
MaurizioG
System.Environment.MachineName