computer-name

What's the best method for getting the local computer name in Delphi

The code needs to be compatible with D2007 and D2009. My Answer: Thanks to everyone who answered, I've gone with: function ComputerName : String; var buffer: array[0..255] of char; size: dword; begin size := 256; if GetComputerName(buffer, size) then Result := buffer else Result := '' end; ...

How can one change a Windows 2000 computer name in .NET 2.0?

I'm trying to change a computer's name (host name) on Windows 2000 using .NET 2.0. The computer is not joined to a domain. Windows XP and higher provides the WMI method Win32_ComputerSystem.Rename, but this is not available in Windows 2000 (reference here). I'm not averse to just calling an external program if I need to, but I also ca...

How to get computer name or IP from javascript?

I want to get the name of the computer or its IP address through javascript. How can this be obtained? ...

Is this a machine name or what?

I have a third party dll, that is supposed to return machine name. Sometimes it returns \\John-PC some other times it returns \\192.168.1.120 and recently i discovered that it returns something like this \\[ef80::32d6:2255:27dd:123c] So what is the third option? If it is not a bug or MAC orelse, could i convert it to \192.168.1...

getting client computer name in a flex web application?

is it possible to obtain the computer name of the client using flex? I made a small intranet application and I need to log computer access to it. I used Flex 3.4 and web services in .net 3.5 thanks. ...