AnthonyC has asked for the wisdom of the Perl Monks concerning the following question:
I have been working on a script to parse through several data set files and check for errors. These sets are huge and usually take up an entire 750GB hard drive each. Thankfully I get most of the information out of the filename and attributes. As part of my data logging, we want to log the physical drive serial number associated with each data set. More info on this below.
Anyway, every time a problem came up, your site was near the top of a Google search with the answer.The question:
I have a main script that does the parsing based on drive letter to find out all the file information. I have another script (that I found here) that can use the Win32::OLE->GetObject to get information about DiskDrive, PhysicalMedia, and LogicalDrive, and even return the Serial Number for a given physical drive.What I can't figure out how to do is determine how the physical drives are mapped to drive letters and incorporate this into the Perl script.
If someone knows a registry entry, windows file, or Perl library/command that can help, I would really appreciate it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Windows drive letter mapping question
by mr_mischief (Monsignor) on Apr 11, 2008 at 18:06 UTC | |
by AnthonyC (Novice) on Apr 15, 2008 at 15:09 UTC | |
|
Re: Windows drive letter mapping question
by swampyankee (Parson) on Apr 11, 2008 at 19:03 UTC | |
|
Re: Windows drive letter mapping question
by AnthonyC (Novice) on Apr 15, 2008 at 20:39 UTC | |
by bittis (Sexton) on Aug 01, 2008 at 12:54 UTC |