Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Disk Serial Number of NTFS drive
Message
 
 
To
31/12/1999 07:05:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00310850
Message ID:
00310901
Views:
44
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform