G
Guest
Hi,
Who can I get hostname of local machine?
I have found following, but I am not sure all Windows OS(XP/2000/NT/98..) will have the "COMPUTERNAME" environment variable.
System.Environment.GetEnvironmentVariable("COMPUTERNAME");
Is there any better & more reliable way to get hostname/computer name of local machine, where my application are going to run?
Thanks,
Avin Patel
Who can I get hostname of local machine?
I have found following, but I am not sure all Windows OS(XP/2000/NT/98..) will have the "COMPUTERNAME" environment variable.
System.Environment.GetEnvironmentVariable("COMPUTERNAME");
Is there any better & more reliable way to get hostname/computer name of local machine, where my application are going to run?
Thanks,
Avin Patel