Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting a folder and all contents
Message
De
21/10/2010 11:19:40
 
 
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:
01486521
Vues:
61
>>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
>
Thanks again Sergey :)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform