Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading Disk Serial Number of NTFS drive
Message
 
À
31/12/1999 07:05:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00310850
Message ID:
00310901
Vues:
38
>>I also have no solution to get this, I asked this before and get replies but we couldn't fix this. Tell me if you succeded.
>>
>>Regards,
>
>
Dimension aDriveTypes[6]
>aDriveTypes[1] = "Unknown"
>aDriveTypes[2] = "Removable"
>aDriveTypes[3] = "Fixed"
>aDriveTypes[4] = "Network"
>aDriveTypes[5] = "CD-ROM"
>aDriveTypes[6] = "RAM Disk"
>oFS = CREATEOBJECT('Scripting.FileSystemObject')
>For each oDrive in oFS.Drives
>    ? "Drive :"+oDrive.DriveLetter +" Type - " + aDriveTypes[oDrive.DriveType+1]
>    If oDrive.isReady
>        ?? " [Serial Number :" + transform(oDrive.SerialNumber)+"]"
>    Endif
>Endfor
Cetin

Hi Cetin,

This don't works for a NTFS volume, only works in the NT server in local mode, but also only with the first partition, in othercase it returns always 0, and the 'Scripting.FileSystemObject' I think it only worked if the customers has a specific (I think IE5) version of IE.
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform