Read hdd serial number java




















Let's work to help developers, not make them feel stupid. Related Questions. How to read HardDisk Temperature? How do I get harddisk serial number. Weight scale read from serial port using PHP. Serial Read Automatically. Error reading hex value from serial port. Serial port reading data. How to use win32 readfile in C using dllimport to read from serial port. Layout: fixed fluid. Web01 2. Strip HTML. Encode HTML. Paste as-is. Code block. Quoted Text. Then from your one PC you could check every server on your network by just changing the server name.

Edit; I edited my comment after I read your question. My first response was based on your question title and not on the actual question. My mistake. Is okay : At least you tried help and shared with me. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account.

This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.

If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. What are the valid characters in HDD Serial number? About Hard disk serial Number. How to read Arduino Serial number?

Getting HDD serial. But I think the attribute solution is much simpler and I am totally going with it until I have something better. If you are using a Windows OS which is Win7 SP1 or higher, you can simply get it by executing the following cmd command in your java program, via wmic.

If this command returns " Invalid XML content. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to get the hard disk serial number using Java? Ask Question. Asked 10 years, 9 months ago. Active 3 years, 8 months ago. Viewed 28k times. How can I get the serial number of the hard disk with Java? Improve this question. Lii BTW - if your are doing this to prevent people stealing the software, you've 'already lost'.

Add a comment. Active Oldest Votes. File; import java. FileWriter; import java. BufferedReader; import java. Echo objDrive. Component null, sn, "Serial Number of C:", javax.



0コメント

  • 1000 / 1000