Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scripting.FileSystemObject
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00545135
Message ID:
00545811
Vues:
20
Thanks George, I'm testing the GetFileInformationByHandle now. If it works, it begs the question of why MS's FileSystemObject fails.

I'll report back.
John

>John,
>
>MS KB article Q234741 may be of help. Under Win9x, GetVolumeInformation() for remote drives doesn't work. The information in the KB article may be of help in this situation as well.

>>Anyone using the Scripting.FileSystemObject in SCRRUN.DLL to get information on drives, folders, volume names etc?
>>
>>oFS = CREATEOBJECT("Scripting.FileSystemObject")
>>cDrive = ..drive letter ...
>>IF oFS.DriveExists(cDrive)
>> oDrv = oFS.Drives.Item(cDrive)
>> ? oDrv.SerialNumber
>> ? oDrv.FreeSpace
>> ? oDrv.TotalSpace
>> ... etc ...
>>ENDIF
>>
>>It works very well (as long as you have SCRRUN.DLL installed), but I cannot get volume serial numbers from some partitions. On a W2K machine, its FAT partition gives a good serial number, but its 2 NTFS partitions each return "0000-0000".
>>
>>The KnowledgeBase article Q139547 shows how to use the GetVolumeInformation API call with VFP - but this does no better.
>>
>>VOL at the command prompt returns a good serial for each partition.
>>
>>Any clues about how to get around this? Any past threads deal with it?
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform