Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting a Directory and all sub-directory...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00795177
Message ID:
00795187
Vues:
36
Hi George,
What is the deference between:
oFso = CreateObject("Scripting.FileSystemObject")
lcFolder = < ... > 
oFso.DeleteFolder(lcFolder)
and
lcdir = GETDIR()
oFolder = oFSO.GetFolder(lcdir)
oFolder.Delete(.T.)
>>I need to delete directories and all sub-directories.
>>
>>On the Old DOS we had a commande "DelTree" that do just that.
>>
>>Any one know a quick we to do just that in VFP?
>
>How about the Scripting.FileSystemObject?
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
>lcdir = GETDIR()
>oFolder = oFSO.GetFolder(lcdir)
>oFolder.Delete(.T.)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform