Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading a drive´s Serial number from Fox
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00392789
Message ID:
00392862
Views:
12
>I´m trying to read the serialnumber from VFP5 but I have come to a stalemate. I´ve tried using the Sys(), the GetVolumeInfo, but unsucessfuly... can someone throw me a line on this?, thanks

Could you perhaps post the code and the results you're getting from GetVolumeInformation()? One more thing, is this a network drive? As a side note, you can also retrieve a drive's serial number via the Windows Script Host, like this:
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oDrive = oFSO.GetDrive("C:")
? oDrive.SerialNumber
Of course, the WSH needs to be installed.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform