Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting Folder Using WSH
Message
 
À
10/02/2003 10:52:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00751414
Message ID:
00751437
Vues:
21
AFAIK, it is:
Microsoft VBScript runtime (0x800A0046). Permission denied.
Or:
The function attempted to access a file without the proper permission setting.


>I am trying to delete a folder using the 'Deletefolder' command of Windows Scripting Host. Below is the code I am using:
>
>lcExtendedPath = 'P:\NewSales\Unzipped_files\NewSales'
>
>oFSO = CREATEOBJECT('Scripting.FileSystemObject')
>oFSO.DeleteFolder(lcExtendedPath, .T.)
>
>
>I keep getting the following error when I run this:
>
>'OLE Error Code 0x800a0046: Unknown COM Status Code'
>
>If I run this using the Command Window of VFP 7 it works just fine. What am I missing?
>
>Thanks for your help,
>Russell
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform