Machine Name on Windows 98

  • Thread starter Thread starter Terry Reardon
  • Start date Start date
T

Terry Reardon

Hi:
I have problem getting the name of a client machine running windows 98.
On Windows 2000 the client works just as it should and this function
returns the machine name.
On a windows 98 second edition it returns an empty string.


Here is a section of code.

public string GetMachineName()
{
string strMachineName;
strMachineName = Environment.GetEnvironmentVariable("COMPUTERNAME" );
}

Any ideas or could some one point me in the right direction.


TJ. Reardon
 
Hi:
I have problem getting the name of a client machine running windows 98.
On Windows 2000 the client works just as it should and this function
returns the machine name.
On a windows 98 second edition it returns an empty string.


Here is a section of code.

public string GetMachineName()
{
string strMachineName;
strMachineName = Environment.GetEnvironmentVariable("COMPUTERNAME" );
}

Any ideas or could some one point me in the right direction.

Try:

SystemInformation.ComputerName
 
Back
Top