Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading a drive´s Serial number from Fox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00392789
Message ID:
00392862
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform