How to get local harddisk serial number

I want to get the local disknumber in my program.
but i don't know how to do it ,can anyone kind enough to tell me how.
An example will be better.

I'm pretty sure that's not part of the standard Java environment. Java tries to be more abstract than that.
So the answer would be, "use JNI, unless there's some other approach." Another approach may be using the /proc/ filesystem if you're using Linux. (Or other OS's that use such a thing, MacOS X maybe?)

Similar Messages

  • How to get the iphone serial number  in application?

    hello,  everyone
       i  really want to konw how to get the iphone serial number in aplication ?  As it's different from uniqueIdentifier ....
    thank you

    Michele is correct - sneep will help you get the serial from the running domain on the M3000 ,
    and it is a good idea to install STB on your machines.
    If that isn't possible for you, then sneep can be downloaded directly from [http://www.sun.com/sneep]
    I believe that on this platform, sneep gets the serial from the output of prtconf.
    There is a minor correction to be made :
    After installed SNEEP use "man sneep" for all technical details.The sneep man page is not linked into the shared man pages, so you need to use
    man -M /opt/SUNWsneep/man sneep
    with out going to OK prompt (Banner)It is worth noting that the serial shown in the OBP banner is not the product serial
    that you will find on the physical serial tag.
    The banner "serial" is the decimal equivalent of the host ID, which you normally get in hexadecimal from the "hostid" command.

  • How to get the motherboard serial number?

    Hi
    i am writting an application which will encrypt the motherboards serialnumber and other info to do an activation of my application.
    inevitably locking my program to a specific PC.
    Does anyone know how i can get the motherboards serial number?
    I tried the wmi but get so many errors like missing prototype and not declared.
    I dont know when to start using the Windows Management Instrumentation with regards to Lab windows/CVI.
    Can anyone help me?
    Thanks
    Shako
    Help share your knowlegde

    I made up a small example that shows how to use WMI in CVI.
    Unfortunately, I tested it on two systems (Win XP and Win7) and the serial number that can be retrieved in System Enclosure (that should be the S/N assigned by the PC producer) is always blank.
    I will try to locate additional infos on this matter, in the meanwhile you may want to experiment with the example and search for other available infos (like for example OS or disk s/n) to create your own security system.
    The example can be found here.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to get the right Serial Number during Pick Release

    Please we need your help to get the right serial number => Auto-Allocate on YES, Pick Confirm with NO.
        A problem is occurring during the Pick Release process.  Custom code has been added to the hook INV_DETAIL_SERIAL_PUB to provide the Pick Release process with the serial number to pick for the item being pick released.  The hook works and the Pick Release process picks the correct (specified) serial number.  However, at some point later in the Pick Release process the lot number is chosen and the process seems to pick the first lot number it finds available for the item – it does not take into account the serial number provided by the hook.  This causes the Pick Release process to fail when the lot number chosen is not the lot number linked to the serial number.  Has anyone else encountered this same issue?
        An example:
    Item ABC123
    Serial SER001 – Lot LOT001
    Serial SER002 – Lot LOT002
    Serial SER003 – Lot LOT003
    Item ABC123 is being pick released.
    The customised hook provides the Pick Release process with serial SER002.
    The Pick Release process correctly uses SER002, but chooses lot LOT001.
    thanks!
    Francisco

    Hi,
    I guess you have added the code at slightly different place.
    Pick Release Process will always allocate lots based on Inventory Picking Rule (or WMS Pick Strategy if you are using WMS).
    So if you want to override that you much first delete the MTLT record (inv_trx_util_pub.delete_lot_ser_trx), then insert MTLT with your Lot number (inv_trx_util_pub.insert_lot_trx)..then insert MSNT (inv_trx_util_pub.insert_ser_trx) with your serial number.
    Ensure that transaction_temp_id on MSNT should match with SERIAL_TRANSACTION_TEMP_ID on MTLT table.
    Thanks,
    Hrishi

  • How to get HD's serial number??

    Hi guys..
    How to get serial number of hard disk in LINUX and MAC????
    I dont find this..
    Im waiting..
    thx!

    Hi guys..
    How to get serial number of hard disk in LINUX and
    MAC????
    I dont find this..That's because you can't do it without native code.
    Kaj

  • How to get pse 9 serial number for rehosting.

    Lost it materials.  Over a year ago.  Have regestered product w. Adobe.  So can I get help?

    Go to the main page of adobe.com and click where it says My Adobe at the upper right of the page. Eventually you'll be able to find your serial number in there, since you registered.

  • How to get the card serial number while installing applet

    I understand that I can retreive the card serial number from CPLC data. The getCPLCData () requires APDU objects in which it is not available at installation time.
    Does anyone suggust to me how to retrieve serial number while applet installation?

    while INSTALL is running?
    I guess there is no way to do this...

  • How to get a new serial number / unlock code - I have lost mine

    Hi there,
    I recently dug out my Logic 8 box to find that I've lost the piece of paper with all my details of the unlock code etc. Does anyone know who you email in order to prove that you bought your copy of Logic and get sent a new set of codes?
    Any advice you could offer would be fantastic as I'm really keen to reinstal Logic and start making music again.
    Many thanks,
    Max

    http://discussions.apple.com/thread.jspa?messageID=11517073&#11517073

  • How do I go about getting the product serial number to register my product as well as install my product.  I bought it with a product box.  On the software disc sleeve, there is a series of numbers pasted at the bottom of the sleeves but this is not valid

    How do I go about getting the product serial number to register my product as well as install my product.  I bought it with a product box.  On the software disc sleeve, there is a series of numbers pasted at the bottom of the sleeves but this is not valid.  When I tried to type this in for registration, it does register as this numbers also contain letters in it.  Apparently the registration boxes accept numbers only.  What do I do with a useless product for which I have paid good money for it?????

    This is the simple solution which was offered to me when I tried to get the serial code on line.
    The box and disc sleeve do not contain a series with 24 numbers which I presume is the product code to install.
    I tried to redeem the registration code by following what they recommended, but inevitably it gets to the page that showed the registration boxes that need 24 serial numbers and I got stuck again.
    This product is so different what my previous experiences of other software products where I just enter the serial number straight from the disc sleeve and then I got registered and go on to use the software.
    I is really frustrating, spending the last two hours trying to get my product going....

  • How to get a service notification number for given serial number

    Please, someones know how to get a service notification number based on serial number.
    In our process the notification can be created as first step (IW51) or can be created starting from service order (IW32).
    Thanks in advance.
    Luca

    Hi pooja,
    actually standard service request numbers are configured in spro->crm->transactions->Settings for Service Requests->Number Ranges. here they are maintain service request,incident,problem number ranges..
    so when ever your creating any service request then that number range will appear in that object id.
    you have to get that object id in your custom field get_method and based on that you have to change your number..
    example:
    current = me->bo.
    current->get_property_as_string( EXPORTING iv_attr_name  = 'OBJECTI_ID'  RECEIVING rv_result  = lv_id ).
    here you will get object_id based on that you have to write your own logic to display custom value.
    " write your custom logic to populate custom field. pass that custom field value into returning parameter.
    value = custom_value.
    Thanks & Regards,
    Srinivas.

  • HT200276 HOW WILL I GET THE LOST SERIAL NUMBER OF FINAL CUT STUDIO

    HOW WILL I GET THE LOST SERIAL NUMBER OF FINAL CUT STUDIO ???

    It's on the back of the installation booklet. If you've lost that, and have some proof of purchase, it can probably be sorted out by contacting Apple.
    Russ

  • How do I get the activation serial number for

    I've downloaded Photoshop CS6 Extended trial version. How do I get the activation serial number for this software

    You will need to buy the software.

  • HT1349 My iPad is disabled. I have only just been able to find the serial number on the back of my product by using a magnifying glass but even now from "Support" I get an unknown serial number advice. How can I get into it?

    My iPad is disabled. I have only just been able to find the serial number on the back of my product by using a magnifying glass but even now from "Support" I get an unknown serial number advice. How can I get into it?

    Explain exactly what happended - disabled how - and why are you trying to read the serial number? So that you can use it on this site?
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • How can I install PS Elements 10 when get error message, serial number not valid

    I have a new computer (PC Windows)  and want to install my PS Elements 10  and Light Room 5.2.  When I try to do so I get the error message that my serial number is not valid.  I have used the help/support and have done what suggested but nothing seems to work. (The copies were registered.)  Please help me solve this so that I can't get my pix edited. Thanks so much for any help you can give me.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Cathylof did you receive your installation files for Photoshop Elements 10 on CD?  If so are you installing from the CD provided with your purchase?  Please also make sure to utilize the registered serial number at http://www.adobe.com/.  You can find additional details on how to locate the registered serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.

  • When installing CS5 Design Stanard I get an "invalid serial number" message. How do I check to see if the SN

    This is very frustrating! I can't get my program (CS5 Design standard) to load. I had a computer crash, and I get an "Invalid Serial Number" message every time. I'm using the same serial number that came with the program. What do I do next? I get sent into a loop of Q & A's whenever I ask a question. I have never seen a website with so many links before. Someone said to debug the SN#, but I can't find the link to debug. HELP!!!

    When I click on the link I just gave you, this is what I see:
    Your last message was ambiguous about whether you had actually talked to Web Chat.
    I've been told that Web Chat is handled from the US time zones so if you're in a different part of the world, you may have to accommodate that.
    Serial number issues cannot be handled in a forum because (obviously), you're communicating a serial number which would  be broadcast to the entire internet. Also, few Adobe employees are on most of the forums. There are NO Adobe employees on this forum.

Maybe you are looking for