Results 1 to 11 of 11
Like Tree2Likes
  • 1 Post By Eranga
  • 1 Post By DarrylBurke

Thread: Get unique Manufacturing Id of Usb Drive

  1. #1
    arijit158 is offline Member
    Join Date
    Jan 2012
    Posts
    6
    Rep Power
    0

    Default Get unique Manufacturing Id of Usb Drive

    I am working in a company in java platform. I want to read the unique manufacturing id of
    any usb drive through java code for windows,linux and mac O.S . But I cannot able to do this.
    Can any one help regarding this topic ?
    thanking you.
    Last edited by arijit158; 01-10-2012 at 07:24 AM.

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: Get unique Manufacturing Id of Usb Drive

    Java does not have access to host hardware without special JVM plugins which would be platform specific. You might be able to write some native code or shell scripts that java could call, but java has no hardware access directly, only what is provided to it via the JVM.

  3. #3
    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 Re: Get unique Manufacturing Id of Usb Drive

    Native code is the my suggestion. Then you life is so easy in future changes/improvements.
    quad64bit likes this.

  4. #4
    arijit158 is offline Member
    Join Date
    Jan 2012
    Posts
    6
    Rep Power
    0

    Default Re: Get unique Manufacturing Id of Usb Drive

    Thanks for your response.Can you post some native code or shell scripts that java could call
    to read unique manufacturing id of usb drive.

    Thank you.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Get unique Manufacturing Id of Usb Drive

    Quote Originally Posted by arijit158 View Post
    Can you post some native code or shell scripts
    1. This is a forum, not a code factory.
    2. Details of native code or scripts are outside the scope of this forum, which is for Java.

    Did you try searching the net? at best, you may find something ready made that you can use, but at least you will be able to find an appropriate forum for seeking help.

    db
    quad64bit likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  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

    Default Re: Get unique Manufacturing Id of Usb Drive

    Quote Originally Posted by arijit158 View Post
    Thanks for your response.Can you post some native code or shell scripts that java could call
    to read unique manufacturing id of usb drive.

    Thank you.
    I guided you to a direction. Dig into it and do it yourself.

  7. #7
    arijit158 is offline Member
    Join Date
    Jan 2012
    Posts
    6
    Rep Power
    0

    Default Re: Get unique Manufacturing Id of Usb Drive

    ok.Can you guide me by which i can block a pen drive from being browsing from outside my software? I mainly want that no one can copy my software folder to other usb drive.I want to make the software specific to a perticular usb drive which will run only in the specific usb drive.

  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 Re: Get unique Manufacturing Id of Usb Drive

    Even with a native approach I don't think it is quite easy job to do. Once a USB flash connect to the PC on explorer bar on Explorer you can browse it easily. All what you have to do is lock it through another application.

  9. #9
    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 Re: Get unique Manufacturing Id of Usb Drive

    Search the web for file/folder locking. Do some experiments before going further.

  10. #10
    arijit158 is offline Member
    Join Date
    Jan 2012
    Posts
    6
    Rep Power
    0

    Default Re: Get unique Manufacturing Id of Usb Drive

    I had made a dll in C# to retrieve unique manufacturing id of usb drive. It works in .net
    platform . But now I want to use this dll in java application to retrieve unique manufacturing id . How it is possible to get the class of dll in java?

    thank you

  11. #11
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: Get unique Manufacturing Id of Usb Drive

    As others have mentioned, you need to read about java's native method interface.

Similar Threads

  1. Manufacturing Software
    By neoinfosolutions in forum Reviews / Advertising
    Replies: 3
    Last Post: 08-05-2011, 03:09 PM
  2. How to get unique rows from a table
    By Jdevelop in forum New To Java
    Replies: 1
    Last Post: 06-15-2011, 12:08 PM
  3. Unique personal number
    By Lidiya in forum Advanced Java
    Replies: 9
    Last Post: 12-27-2010, 12:13 PM
  4. Encrypting unique columns
    By andy16 in forum JDBC
    Replies: 0
    Last Post: 05-26-2010, 07:57 PM
  5. Best way to format a drive/thumb drive in java...
    By vandyke in forum Advanced Java
    Replies: 1
    Last Post: 12-09-2009, 01:32 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
  •