Getting the Serial ID of a hard disk using Java
Hello,
Can anybody help me in getting the volume serial ID and label of the hard disk using java programing. How to write a program in Java which can read the Volume Serial ID or label of the hard disk ?
I will be thankful if you can paste a sample code or email it to [email protected]
Waiting for quick responses.
Thanks in advance.
VVPATRO
Hello,
Can anybody help me in getting the volume serial
ial ID and label of the hard disk using java
programing. How to write a program in Java which can
read the Volume Serial ID or label of the hard disk ?
I will be thankful if you can paste a sample code
de or email it to [email protected]
Waiting for quick responses.
Thanks in advance.
VVPATROString[] cmd = new String[3];
cmd[0]="cmd.exe";
cmd[1]="/c";
cmd[2]="vol"
Process proc = Runtime.getRuntime().exec(cmd,ambiente);
InputStreamReader isr = new InputStreamReader(proc.getInputStream());
BufferedReader br = new BufferedReader(isr);
String text=null;
String line=null;
while ( (line = br.readLine()) != null)
text=text+line+"*";
//Then you do the necessary parsing to the text;
String Label = text.substring(text.indexOf("is ")+3,text.indexOf("*"));
text = text.substring(text.indexOf("*")+1,text.length());
String Volume = text.substring(text.indexOf("is ")+3,text.indexOf("*"));
Something like this may work :)
You're welcome...
Pinho
Similar Messages
-
How can I get the information about my Toshiba hard disk drive.
I went to genius bar yesterday because some problems with the privies hard disk drive.
They gave me the toshiba as a replacement.
I wasn't required to sign any paper after that. Before when I got a replacement iphone or macbook charger, they both asked me to sign a paper. I don't know why this time is different.
Also I heard that Toshiba hard drive is worse than Samsung's.
By the way, I didn't erase my documents in previous hard drive, will anyone be able use or read them? Well, I saved many account passwords in that hard drive.I think that Apple's using a lot of Toshiba drives these days - that was what was in my MacBook Pro (late 2011) when I bought it (and, one of these days, I'm going to get an enclosure for it and use it).
I wouldn't worry - Toshiba has a pretty good reputation.
Clinton -
When using Batch capture in AP5.5, the clips are saved to hard disk using the capture date as the Created Date and Modified Date. How do I configure Premier to use the actual clips recorded date (Meta Data Basic/Date Created) so that I can view them in Windows folders and other applications based on the date the video was recorded, not when I imported it.
AFAIK, there's no way to do that with Premiere Pro. You can probably find a utility on the Internet that will change the dates for you after the fact.
Cheers,
Jeff -
How can I get the serial number of the hard disk of my PC
I want to get the serial number of my PC hardisk. Is there any command that I can pass to the System Exec.vi that will give this info.
I rember this from some time ago. If you use 32 bits system. You will need to do a call to kernel32.dll. And the function is GetVolumeInformationA
http://forums.ni.com/t5/LabVIEW/Call-to-WinAPI-Kernel32-dll-doesn-t-work-in-runtime/m-p/121097 It may do the trick for you
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far) -
I won Lightroom 1.0 as a door prize a few years ago at an Adobe clinic in Fremont. I have since misplaced the original disk and cannot get the program to open. It wants a serial number and I don't have one. How can I get the serial number so I can use the software?
Thanks for replying, Jim. I wasn't planning to use it for raw images. I shoot film, black and white, and have many negatives I want to print. I am unfamiliar with the upgrades in Lightroom. I wasn't unhappy with the version I have. It was useful for my purposes.
Because it was a few years ago, I don't remember if I registered the product. I was able to login to my account. But could not find a path to communicate with Adobe. I will keep trying.
Ken -
How can I get the serial number for Premiere 11?
In october 2012 I´ve bought a bundle pack with Photoshop Elements 11 and Premiere 11. After a hard disk crash i was about to reinstall them both but my wife has trown the envelope in the garbage... = No Serial number available!!
I´ve registered the serial number for Photoshop Element 11 on Adobe, but not the key for Premiere (they are on the same dvd).
How can I get the serial number for Premiere 11?I do not think there is any way for anyone here to help you (we are just other users) so you are going to have to contact Adobe
Forum for Download & Install & Setup problems
http://forums.adobe.com/community/download_install_setup
Chat http://www.adobe.com/support/download-install/supportinfo/
-or http://www.adobe.com/support/chat/ivrchat.html
And tell your wife to be more careful about throwing things away -
i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
Please HELP!!!!!! Getting second thoughts on Lion!!!!Hi b,
Have you restarted yet? -
How to export the comp/interface to local hard disk
hi all,
can any one send me how to export the comp/interface to local hard disk
thanks,
viswaHi Vishwa,
It is not possible to export the project or comp/interface from a WDA project to your local hard disk.
Also if you need more information on WD ABAP please post in WebDnpro ABAP forum. You will definitely get more information regarding your queries in that forum.
I hope this answer helps you.
Thanks and Regards,
Pravesh -
I'm going to save my old Hi8 tapes on a hard disk using final cut pro x, to save it for the future. But how shall I export it, and in what will be the best quality to save it in?
Hi Carsten...good luck with your project.. I had just about as many Video8 & Hi8 tapes as
you that I digitized and eventually brought into FCPX..took me many months not weeks
to do so,BTW, as each tape was 60-90 minutes in lenght...and many hundreds of
gigab ytes of storage ( uncompressed AVI files)..it's tedious work unless you plan to farm
it out to a processing house...also regarding eventual storage format...remember
Hi8 is 400 lines or about 540X480 in todays resoultion metrics..you can't make hi-def out
of source that starts out as 400 lines...in my case I rewrapped the avi files into .mov
containers and imported the mov files into FCPX where I got rid of the hundreds of
minutes of Colorado mountain landscapes to get to that one minute shot of the kids
on horseback ( late 80's for most of my archives)..so its a job..scouring thru 30X90 min
of source to not miss those precious memories takes diligence and hard work but its worth
it; eventually I encode the uncompressed video I want to save in H.264 format Staandard
Def not HiDef -
Where can I get the serial number for my original copy of Aperture?
I have the aperture 3 software ready to install, but I cannot go farther until I have the serial number from the copy I am upgrading. How can I get the serial number for the older version of Aperture? My current version is 1.5.4. Any help you can give me is appreciated!
Is there any place to find the original serial number other than "the sheet in the box". My original is v 1.1 (now running 2.x) & I'm double stuck - trying to migrate to a new PowerBook and upgrade to 3.0 - both tasks needing the original serial number. The box is long gone (first installed aperture at least 3 years ago) and serial recorded in my personal log has transposed or dropped digits - i.e. corrupted. The option to get a replacement serial from Apple is a long shot as well - only "proof" of purchase is that I have the original disk and the original user manual. Can't remember which store I bought it at nor would they have records that old. There has got to be some way to decrypt it from the various system files (preferences and application support)- any suggestions?
-
How do i get ahold of a real person? My phone is only showing a black screen so I can't get on it to get the serial number or call anyone. please help
http://www.apple.com/support/iphone/contact/
-
HT1349 My Ipod was stolen how do i get the serial number?
My IPOD was stolen how do I get the serial number?
The easiest way to find your serial number is this Open Itunes...click help... run diagnostics.....(tick or untick as necessary) so that you just have ticked the last two, device connectivity and device sync. run these tests. it will say no ipod/ipad found but will give results of test....scroll down to bottom of results... here you will find the serial number of your last attached devices.
-
I have the new 2011 macbook pro, with lion preinstalled. I want to change the harddrive. I have backed up everything on time machine. when i put my new blank hard drive in will the lion screen startup.How do i get the lion dmg when i am already using lion
NicholasLiban -
When you use the Lion restore as described, it does a fresh install on the hard drive that you can select at the beginning of the process. This provides a complete install of the very latest version of Lion, including the recovery partition. The drive that you choose for the installation destination winds up like what you would have on a brand new computer from Apple.
- Randy -
How can you get the serial number of your ipod touch when it has been lost?
My daughter took her ipod touch to a friends house and it is now missing...can anyone tell me how to get the serial number so that we can report the missing device? Thanks to anyone who can help.....
On the syncing computer go to iTunes>Preferences>Device and hover the mouse pointer over the iPod backup and the SN will show in a box. Also see:
iPod: How to find the serial number -
My iPod touch was stolen. Can I get the serial number from my iTunes account?
See the end of:
- If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
- You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
- If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
- Change the passwords for all accounts used on the iPod and report to police
- There is no way to prevent someone from restoring the iPod (it erases it) using it.
- Apple will do nothing without a court order
Reporting a lost or stolen Apple product
- iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
Maybe you are looking for
-
Installing CE 7.1 SP3 on Vista
I'm trying to install CE 7.1 SP3 on my laptop with Vista and I get an error message at the beginning of the install saying 'the subkey HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Automatic LiveUpdate Scheduler does not exist on the 'localhos
-
I have used your help processes and done everything that is suggested - repeatedly. I don't know what else to say. Whenever I go to a site requiring the use of adobe flash, the system freezes up for a couple of minutes or more and then it says that F
-
Organise photos within Album in iPhoto on iPad
Yesterday I purchased the iPhoto app for my iPad, this is due to someone recommending it to me as an easy option of presenting artwork as a portfolio. I have a batch of JPEGs in an album that I want to display in a certain order, so I named them for
-
Firefox isn't using printer settings for labelprinter
I'm using a labelprinters to print shipping labels with, of which i print multiple each day. To do that I create a label with my supplier, open the label and then print it. But for some reason firefox doesn't use the settings (labelwith) as I've inst
-
Cannot find specified parameter file informatica
Hello I am running DAC for the first time.Then i went through Workflow monitor. N it is showing This error cannot find specified parameter file informatica!!!