Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FSO OLE Error Code
Message
De
17/12/2001 16:11:31
 
 
À
17/12/2001 16:05:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00595266
Message ID:
00595345
Vues:
29
>>>
>>>I get the same error too (on W2K). If you want to get the drive's size, you can also do this:
>>>
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>>>oDrive = oFSO.GetDrive("C:\")
>>>?oDrive.AvailableSpace && or
>>>?oDrive.TotalSize
>>>HTH
>>
>>I wonder if this is limited to Fox... can someone try it in another language (VB, anyone? < g >)
>
>I get a "Error 70, Permission is denied"

Ah, that's useful - I was wondering about permissions. For example, in W2K there is a folder "C:\System Volume Information" to which one has no access - even as Administrator. Sure enough, if I do
oFSO = CREATEOBJECT("Scripting.FileSystemObject") && OK
oFolder = oFSO.GetFolder("C:\System Volume Information") && OK
?oFolder.Size && Same error
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform