Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Get some system info?

Get some system info?

Scheduled Pinned Locked Moved C#
questioncsharp
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Divyang Mithaiwala
    wrote on last edited by
    #1

    Hello to all, I want some system info to my C# application. 1) Hard disk serial no (Manufature serial no) 2) Mac Address 3) IP Address How can i get these all & use it in my application.


    Divyang Mithaiwala

    G A D 3 Replies Last reply
    0
    • D Divyang Mithaiwala

      Hello to all, I want some system info to my C# application. 1) Hard disk serial no (Manufature serial no) 2) Mac Address 3) IP Address How can i get these all & use it in my application.


      Divyang Mithaiwala

      G Offline
      G Offline
      goyal manish
      wrote on last edited by
      #2

      hi i have used only for IP address for that you can do following 1. Add using System.Net; 2. IPHostEntry ipHost = Dns.GetHostByName(Dns.GetHostName()); IPAddress [] ip = ipHost.AddressList; string ipaddress = ip[0].ToString();

      D 1 Reply Last reply
      0
      • D Divyang Mithaiwala

        Hello to all, I want some system info to my C# application. 1) Hard disk serial no (Manufature serial no) 2) Mac Address 3) IP Address How can i get these all & use it in my application.


        Divyang Mithaiwala

        A Offline
        A Offline
        Ahmad Mahmoud candseeme
        wrote on last edited by
        #3

        Use the Environment class to retrieve information such as command line arguments, the exit code, environment variable settings, contents of the call stack, time since last system boot, and the version of the common language runtime. other than those mentioned above you can use the WMI Ahmad Shaban

        D 1 Reply Last reply
        0
        • A Ahmad Mahmoud candseeme

          Use the Environment class to retrieve information such as command line arguments, the exit code, environment variable settings, contents of the call stack, time since last system boot, and the version of the common language runtime. other than those mentioned above you can use the WMI Ahmad Shaban

          D Offline
          D Offline
          Divyang Mithaiwala
          wrote on last edited by
          #4

          Thanx Ahmad It is so usefull to me.


          Divyang Mithaiwala

          1 Reply Last reply
          0
          • D Divyang Mithaiwala

            Hello to all, I want some system info to my C# application. 1) Hard disk serial no (Manufature serial no) 2) Mac Address 3) IP Address How can i get these all & use it in my application.


            Divyang Mithaiwala

            D Offline
            D Offline
            Divyang Mithaiwala
            wrote on last edited by
            #5

            By doing googling on wmi i also found some example for my own question. If some one found usefull. 1) For IP address the first reply is best. 2) To found MAC address go here. 3) For HDD Manufacture Serial No go here.


            Divyang Mithaiwala System Engineer & Software Developer

            1 Reply Last reply
            0
            • G goyal manish

              hi i have used only for IP address for that you can do following 1. Add using System.Net; 2. IPHostEntry ipHost = Dns.GetHostByName(Dns.GetHostName()); IPAddress [] ip = ipHost.AddressList; string ipaddress = ip[0].ToString();

              D Offline
              D Offline
              Divyang Mithaiwala
              wrote on last edited by
              #6

              Thanx Manish, It's work for me.


              Divyang Mithaiwala System Engineer & Software Developer

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups