Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disk Volume
Message
From
03/03/2004 05:28:57
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
 
To
02/03/2004 18:31:55
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00882550
Message ID:
00882626
Views:
16
HI
test it and be happy


LPARAMETERS drvPath
LOCAL FS,F1,cSerial
drvPath = IIF(LEN(drvPath)=1,drvPath+":",drvPath)
fs = CreateObject("Scripting.FileSystemObject")
f1 = fs.GetDrive(fs.GetDriveName(fs.GetAbsolutePathName(drvPath)))
cSerial = f1.SerialNumber
RELEASE fs,f1
cSerial=RIGHT(TRANSFORM(cSerial, "@0"), 8)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform