Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting a directory and all its contents
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00907110
Message ID:
00907433
Vues:
15
Hi, George

This is exactly what i want to do at the moment. The difference is, on a multi-purpose dialog, I've already got the folder name ( the user may want to look in it, assign it as his default dir or, indeed, delete it and all its sub-folders and files).

Your little snippet works fine but could you please tell me how it can be adapted to delete an already-known folder? I can't find anything on Intellisense that would do and i don't know the syntax of the properties anyway.

'ppreciate it

Terry


>The Windows Script Host
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>oFolder = oFSO.GetFolder(GETDIR())
>oFolder.Delete(.T.)
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform