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. HDD Serial Number

HDD Serial Number

Scheduled Pinned Locked Moved C#
helpquestion
8 Posts 5 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.
  • S Offline
    S Offline
    Socheat Net
    wrote on last edited by
    #1

    Hi How can I get serial number of HDD, i have used the reference System.Management other property can use but only name SerialNumber can not use. So please help me

    Socheat

    A L R realJSOPR 5 Replies Last reply
    0
    • S Socheat Net

      Hi How can I get serial number of HDD, i have used the reference System.Management other property can use but only name SerialNumber can not use. So please help me

      Socheat

      A Offline
      A Offline
      ABitSmart
      wrote on last edited by
      #2

      Did you check this [^]?

      S 1 Reply Last reply
      0
      • S Socheat Net

        Hi How can I get serial number of HDD, i have used the reference System.Management other property can use but only name SerialNumber can not use. So please help me

        Socheat

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi, the article ABitSmart provided shows how WMI will help you. Unless you are using Vista, it needs administrator rights there. :~

        Luc Pattyn [Forum Guidelines] [My Articles]


        - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


        modified on Friday, June 10, 2011 11:40 PM

        1 Reply Last reply
        0
        • S Socheat Net

          Hi How can I get serial number of HDD, i have used the reference System.Management other property can use but only name SerialNumber can not use. So please help me

          Socheat

          R Offline
          R Offline
          Ramkithepower
          wrote on last edited by
          #4

          http://www.codeproject.com/KB/mcpp/DriveInfoEx.aspx[^]

          1 Reply Last reply
          0
          • A ABitSmart

            Did you check this [^]?

            S Offline
            S Offline
            Socheat Net
            wrote on last edited by
            #5

            thank for your information

            Socheat

            1 Reply Last reply
            0
            • S Socheat Net

              Hi How can I get serial number of HDD, i have used the reference System.Management other property can use but only name SerialNumber can not use. So please help me

              Socheat

              A Offline
              A Offline
              ABitSmart
              wrote on last edited by
              #6

              Please check what Luc has pointed out and also it behavior on Win2K. Take a look at the messages posted for the article.

              1 Reply Last reply
              0
              • S Socheat Net

                Hi How can I get serial number of HDD, i have used the reference System.Management other property can use but only name SerialNumber can not use. So please help me

                Socheat

                realJSOPR Offline
                realJSOPR Offline
                realJSOP
                wrote on last edited by
                #7

                You do know that the hard disk serial number changes when it's reformatted, right?

                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                -----
                "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                S 1 Reply Last reply
                0
                • realJSOPR realJSOP

                  You do know that the hard disk serial number changes when it's reformatted, right?

                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                  -----
                  "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                  S Offline
                  S Offline
                  Socheat Net
                  wrote on last edited by
                  #8

                  I not mean like that, I mean get the HDD serial that has on the HDD.

                  Socheat

                  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