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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. System info

System info

Scheduled Pinned Locked Moved C#
helpcsharpperformance
8 Posts 3 Posters 1 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.
  • S Offline
    S Offline
    sj_h1
    wrote on last edited by
    #1

    I am trying to find a class to get the system info (i.e. memory usage, disk space...). I have seen several references to a System.Mangament class but its not list in the .net MSDN help files and doing a "using System.Management;" creates an error. Any ideas.

    G J 2 Replies Last reply
    0
    • S sj_h1

      I am trying to find a class to get the system info (i.e. memory usage, disk space...). I have seen several references to a System.Mangament class but its not list in the .net MSDN help files and doing a "using System.Management;" creates an error. Any ideas.

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      sj_h1 wrote:

      I have seen several references to a System.Mangament class but its not list in the .net MSDN help files

      If you are looking for "System.Mangament" I can understand that your search results were sparse. Perhaps if you look for "System.Management[^]" instead... ;)

      --- b { font-weight: normal; }

      S 1 Reply Last reply
      0
      • G Guffa

        sj_h1 wrote:

        I have seen several references to a System.Mangament class but its not list in the .net MSDN help files

        If you are looking for "System.Mangament" I can understand that your search results were sparse. Perhaps if you look for "System.Management[^]" instead... ;)

        --- b { font-weight: normal; }

        S Offline
        S Offline
        sj_h1
        wrote on last edited by
        #3

        very funny...now try to be helpful

        G 1 Reply Last reply
        0
        • S sj_h1

          I am trying to find a class to get the system info (i.e. memory usage, disk space...). I have seen several references to a System.Mangament class but its not list in the .net MSDN help files and doing a "using System.Management;" creates an error. Any ideas.

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #4

          Before you can add a

          using System.Management;

          using directive in your code, you'll need to add a reference to the System.Management.dll

          Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

          S 1 Reply Last reply
          0
          • J Judah Gabriel Himango

            Before you can add a

            using System.Management;

            using directive in your code, you'll need to add a reference to the System.Management.dll

            Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

            S Offline
            S Offline
            sj_h1
            wrote on last edited by
            #5

            Thats the very information I need. How do I do that.

            J 1 Reply Last reply
            0
            • S sj_h1

              Thats the very information I need. How do I do that.

              J Offline
              J Offline
              Judah Gabriel Himango
              wrote on last edited by
              #6

              How do you add a reference to your project? That's pretty basic: in Visual Studio, in the Solution Explorer window, under your project, right-click the References folder, then click add reference. In the window that pops up, scroll down to the System.Management.dll, select it, and hit OK.

              Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

              S 1 Reply Last reply
              0
              • S sj_h1

                very funny...now try to be helpful

                G Offline
                G Offline
                Guffa
                wrote on last edited by
                #7

                sj_h1 wrote:

                very funny...now try to be helpful

                I marked the reply as "Answer" because it is supposed to be helpful, eventhough the joke is on you for misspelling the namespace. Just click on the link that I included in my post, and you will come to the documentation.

                --- b { font-weight: normal; }

                1 Reply Last reply
                0
                • J Judah Gabriel Himango

                  How do you add a reference to your project? That's pretty basic: in Visual Studio, in the Solution Explorer window, under your project, right-click the References folder, then click add reference. In the window that pops up, scroll down to the System.Management.dll, select it, and hit OK.

                  Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

                  S Offline
                  S Offline
                  sj_h1
                  wrote on last edited by
                  #8

                  Thank you.

                  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