Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading Disk Serial Number of NTFS drive
Message
De
31/12/1999 18:11:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00310850
Message ID:
00311058
Vues:
36
>>>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.


Actually I use NTFS and this works for me ???
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform