Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting Folder Using WSH
Message
De
10/02/2003 10:52:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Deleting Folder Using WSH
Divers
Thread ID:
00751414
Message ID:
00751414
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform