Results 1 to 14 of 14
- 08-11-2009, 05:18 AM #1
Member
- Join Date
- Aug 2009
- Posts
- 9
- Rep Power
- 0
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
- 08-11-2009, 11:51 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 08-11-2009, 01:42 PM #3
Member
- Join Date
- Aug 2009
- Posts
- 9
- Rep Power
- 0
i want platform independent language..so i have choosen java..
- 08-12-2009, 02:51 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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?
- 08-13-2009, 06:05 AM #5
Member
- Join Date
- Aug 2009
- Posts
- 9
- Rep Power
- 0
i dint find relevant article,,,but i need this..
- 08-14-2009, 04:12 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 08-14-2009, 08:04 AM #7
Member
- Join Date
- Aug 2009
- Posts
- 9
- Rep Power
- 0
yeah ,i tried this ..its not working properly..i guess i have to add something to this code...
- 08-14-2009, 11:27 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 08-17-2009, 05:16 AM #9
Member
- Join Date
- Aug 2009
- Posts
- 9
- Rep Power
- 0
No i dint get error message..but i dint get serial number...
its displaying some 6 to 7 digits number..but nt serial number...
- 08-17-2009, 05:22 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Are you tried the example I've send in previous link. It gives me the correct value actually.
- 08-17-2009, 06:27 AM #11
Member
- Join Date
- Aug 2009
- Posts
- 9
- Rep Power
- 0
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.
- 08-18-2009, 04:27 AM #12
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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
- 09-08-2009, 05:50 AM #13
Member
- Join Date
- Aug 2009
- Posts
- 9
- Rep Power
- 0
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.
- 11-14-2011, 08:09 AM #14
Member
- Join Date
- Nov 2011
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
Geting Mobile Number, Mobile Operator, Location and Mobile Serial Number by J2ME.
By maruffaiz in forum CLDC and MIDPReplies: 1Last Post: 08-07-2009, 12:14 PM -
Retrieve Image From Hard Disk
By sayan751 in forum AWT / SwingReplies: 3Last Post: 02-20-2009, 03:29 PM -
Hard Token Management Framework 1.0
By Java Tip in forum Java SoftwareReplies: 0Last Post: 07-02-2008, 07:18 PM -
Extreme nooby having hard time with this app
By asterix350z in forum New To JavaReplies: 2Last Post: 12-05-2007, 07:24 PM -
Hard Token Management Framework 1.0_Beta1
By levent in forum Java SoftwareReplies: 0Last Post: 08-07-2007, 04:26 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks