Results 1 to 4 of 4

Thread: how to get computer name in vb.net?

  1. #1
    venAdder is offline VB.NET Forum Newbie
    .NET Framework
    Join Date
    Jul 2005
    Posts
    4
    Reputation
    0

    how to get computer name in vb.net?

    Hi,
    I wanna knwo the name of the computer/machine on which my app is running. How do i get that in vb.net without using API? Is there a way of getting the machine name in winxp sp2 using vb.net ?
    Last edited by Neal; 07-11-2005 at 6:59 PM. Reason: Spelling error (egt to get)

  2. #2
    Neal's Avatar
    Neal is offline VB.NET Forum Admin
    .NET Framework
    .NET 4.5
    Join Date
    Jul 2004
    Location
    Richmond, VA
    Posts
    1,250
    Reputation
    236
    Environment.MachineName I believe is the code
    Neal
    VB.NET Forums Admin

  3. #3
    kulrom's Avatar
    kulrom is offline VB.NET Forum All-Mighty
    .NET Framework
    .NET 3.5
    Join Date
    May 2005
    Location
    Republic of Macedonia
    Posts
    2,855
    Reputation
    263
    You beleive correct Neal it is the code to get machine's name.

    btw you can pop up winver window with the name as well

    Code:
    MessageBox.Show(Environment.MachineName)
    
    Process.Start("winver.exe") 'this window holds all informations about current local PC

    Cheers

  4. #4
    venAdder is offline VB.NET Forum Newbie
    .NET Framework
    Join Date
    Jul 2005
    Posts
    4
    Reputation
    0
    Thank a lot guys

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking