Set WSHShell = WScript.CreateObject("WScript.Network") MSG = WSHShell.ComputerName MsgBox "Nom de l'ordinateur : " & MSG
dans C / C++ / C++.NET