Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursive Remove Directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00302015
Message ID:
00302080
Vues:
33
Hi Ed,

As long as your deleting all the sub-directories, why not just:
FUNCTION DelFolderTree
LPARAMETER cPathToDelete, toFSO
LOCAL oFSO, oFolder
IF TYPE('toFSO') # 'O' OR ISNULL(toFSO)
   oFSO = CREATEOBJ('Scripting.FileSystemObject')
ELSE
   oFSO = toFSO
ENDIF
oFSO.DeleteFolder(cPathToDelete,.t.)
oFSO = ''
RETURN
kenweber
GCom2 Solutions
Microsoft Certified Professional

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform