Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 12 of 12
  1. #1
    Join Date
    Mar 2005
    Posts
    130

    Drive GetInformation SerialNumber ?

    Drive.GetInformation("D:\\").SerialNumber;
    how is this calculated ?
    its not explained in the help file.

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    The serial number is part of the table returned by the Drive.GetInformation action e.g.
    Code:
    result = Drive.GetInformation("C:");
    sernumber=result.SerialNumber

  3. #3
    Join Date
    Apr 2007
    Location
    Mar Sara
    Posts
    292
    He asked how it's calculated. I guess it's taken from the registry.

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    Quote Originally Posted by Desolator View Post
    He asked how it's calculated. I guess it's taken from the registry.
    I can see that.

    It may well be that I have misinterpreted the question but at least I provided a definitive answer as opposed to a guess

    The drive.GetInformation action returns a table which includes the drive label, file system and serial number.

    When a drive is formatted under DOS or Windows the drive label, file system and serial number is generated and recorded on the drive.

    Since the information created by a format and that retrieved by the AMS action are the same, it's possible that the information is retrieved from the hard drive boot sector where Windows or DOS stores it, but I don't know whether that is the case or not.
    Last edited by longedge; 10-06-2007 at 01:57 PM.

  5. #5
    Join Date
    Mar 2005
    Posts
    130
    well i wish one of the staff answer the question
    because even if the drive is a cd/dvd drive we can get the serial and they dont have boot sector.
    tried burning the a disc over and over and the serial keep changing

  6. #6
    Join Date
    Aug 2003
    Posts
    2,427
    Quote Originally Posted by goukilord10 View Post
    well i wish one of the staff answer the question
    because even if the drive is a cd/dvd drive we can get the serial and they dont have boot sector.
    tried burning the a disc over and over and the serial keep changing
    The information written to a floppy or hard drive when formatted is based on an algorithm which uses the current time/date, so I've always understood anyway. Presumably something similar is used to generate the serial number of the CD/DVD when it's burned and the information is written to the initial sector of the media, although I have heard that the way/format of information that's written differs between manufacturers.

    Let's see if one of the I.R. staff pick this up and answer the question for you

  7. #7
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    It's using the Windows GetVolumeInformation API call.

    What it returns is "the volume serial number that the operating system assigns when a hard disk is formatted."

    I would assume the volume serial number applies when any media is formatted.

    Note that this has nothing to do with the manufacturer's serial number. To get that you would need to use other methods, such as accessing the drive's S.M.A.R.T. data somehow.
    --[[ Indigo Rose Software Developer ]]

  8. #8
    Join Date
    Mar 2005
    Posts
    130
    thanks for expaining it details lorne.
    i was hoping to get the cd/dvd disc serial/manufacurer infomation to use use it for some sort of copy protection..

  9. #9
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    It might work for that, assuming you're using read-only media. I'm not actually sure if it's something that is stored on the media or not.

    Should be easy to test...just get the volume serial number of the same CD on two different systems. If they match, then you should be good to go.
    --[[ Indigo Rose Software Developer ]]

  10. #10
    Join Date
    May 2006
    Posts
    5,380
    sside made a dll (.NET) that will get the hardware serial of a drive
    http://www.indigorose.com/forums/showthread.php?t=21064
    Open your eyes to Narcissism, Don't let her destroy your life!!

  11. #11
    Join Date
    Apr 2007
    Location
    Mar Sara
    Posts
    292
    AFAIK that will only work if the BIOS is set to allow the serial to be read.

  12. #12
    Join Date
    Mar 2005
    Posts
    130
    It might work for that, assuming you're using read-only media. I'm not actually sure if it's something that is stored on the media or not.

    Should be easy to test...just get the volume serial number of the same CD on two different systems. If they match, then you should be good to go.
    well actually tried doing a disc copy and the copied disc serial in the same as the source disc :(
    so i guess it cant be used for CP...

    sside made a dll (.NET) that will get the hardware serial of a drive
    you cant get the serial if the bios dont allow it (its the case in most computers)
    however you can get the disc serial and its the same that AMS return.

    this is what i was looking to get
    by getting this info into ams (this taken from nero CDSpeed) it make it quite hard that someone find the same media you used to make the original so he make a copy.
    Attached Images

Similar Threads

  1. IF else statement
    By synistics in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 04-21-2007, 12:33 PM
  2. multiple locations.
    By wasim21k in forum AutoPlay Media Studio 6.0
    Replies: 15
    Last Post: 04-04-2007, 09:43 AM
  3. Need help on solving Drive Action problem!
    By mdxafx in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 01-13-2007, 06:26 PM
  4. Intranet shared drive access
    By mafranks in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 10-15-2004, 04:17 AM
  5. Determining the Drive Letter of the Primary Hard Drive
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 09:43 AM

Posting Permissions

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