Results 1 to 14 of 14
  1. #1
    manucng is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Unhappy Serial number of exernal hard disk/Thumbdrive

    Hi guys,

    I am new tio java networking concepts.Please tel me how to get Serial number of exernal hard disk/Thumbdrive using java code.and it should work for both linux and windows(platform independent).please send any Documentaton or example if u knw.please send its urgent.please send to manucng@gmail.com

    manu

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Requesting help in your inbox not make sense lol.

    Actually when you are talking about hardware stuff, Java is not a good solution at all. JNI is the best, VBScript or a C/C++ dll can use for that. Search for such things on the web.

  3. #3
    manucng is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default

    i want platform independent language..so i have choosen java..

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Ya it's true. But that's not easy as you expect. Did you search on the web? How many articles you find about this?

  5. #5
    manucng is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default

    i dint find relevant article,,,but i need this..

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  7. #7
    manucng is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default

    yeah ,i tried this ..its not working properly..i guess i have to add something to this code...

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Okay, so let us know what comes across with. I mean did you get any error messages there? If so show the complete error message here to see.

  9. #9
    manucng is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default

    No i dint get error message..but i dint get serial number...
    its displaying some 6 to 7 digits number..but nt serial number...

  10. #10
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  11. #11
    manucng is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default

    yeah i tried the same..instead of C drive..i have passed F which is my USB drive.its not retriving serial number of my usb.

  12. #12
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Actually I've forget the original question lol. Using this scripts directly we cannot deal with external drivers. If you have time please look-at the following project, I found it by a google search.

    JSR080 - javax.usb

  13. #13
    manucng is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default Device Change(Detect USB arrival)

    Hi,

    i have solved using jni and dll.i am getting serial number of usb .but thing is i am passing drve letter manually.i have to detect usb arrrival and i have to get the drive letter after that i have to pass that drive letter.can u tell me the ways to detect device change.i don want to use one more dll,if i use then my application will be slower.so please tell me in java how to detect device change(system event) and get drive letter of the device.

  14. #14
    umeshwar is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default Re: Device Change(Detect USB arrival)

    Hi dude,
    This umeshwar, I am trying to retrieve the usb serial no using java jni . I am not able to get this task. please can you guide me how it is done.

Similar Threads

  1. Replies: 1
    Last Post: 08-07-2009, 01:14 PM
  2. Retrieve Image From Hard Disk
    By sayan751 in forum AWT / Swing
    Replies: 3
    Last Post: 02-20-2009, 04:29 PM
  3. Hard Token Management Framework 1.0
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 07-02-2008, 08:18 PM
  4. Extreme nooby having hard time with this app
    By asterix350z in forum New To Java
    Replies: 2
    Last Post: 12-05-2007, 08:24 PM
  5. Hard Token Management Framework 1.0_Beta1
    By levent in forum Java Software
    Replies: 0
    Last Post: 08-07-2007, 05:26 PM

Tags for this Thread

Posting Permissions

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