Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting a folder and all contents
Message
 
 
À
21/10/2010 10:52:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01486517
Message ID:
01486518
Vues:
107
This message has been marked as the solution to the initial question of the thread.
>Hi All.
>
>What is the best way to delete a folder, all it's sub-folders and all contents?
loFso = CreateObject("Scripting.FileSystemObject")
TRY
	loFolder = loFso.Getfolder(tcDirectory)
	loFolder.Delete()
	llOK = .T.
CATCH
	llOK = .F.
ENDTRY
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform