The most elegant way :) is to use my DriveInformation VFP class. You can download it from the download corner, here on Universal Thread. Just click on the cabinet icon and choose "Classes - VCX" category.
You can retrieve the serial number as well as many other info (about drives) using this class. In the help file you'll find a code sample, too.
Enjoy it,
Vlad
>Is there such an API function that can obtain the serial number of a
>disk (hard disk, CD-ROM, etc.)? I'm writing a catalog program in VFP
>5.0 to organize my CDs and I wanted to retrieve each CDs serial
>number. You can see it when you do a directory listing in DOS, so
>I know it's got to be obtainable (hopefully elegantly!).
>
>Thanks
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement