Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete a Directory
Message
 
À
27/02/2004 12:26:11
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00881549
Message ID:
00881596
Vues:
30
>What is the function for deleting a directory?

If there are files in the directoy the function RD/RMDIR won't work. This includes sub-directories. What will work is the Windows Script Host's FileSystemObject.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oFolder = oFSO.GetFolder(GETDIR())
? oFolder.Delete(.T.) && force deletion
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform