Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove an existing directory programatically?
Message
De
17/10/2002 21:12:01
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00711569
Message ID:
00712660
Vues:
17
>Hi Henry.
>You cannot RMDIR a directory if it contains files and/or directory.
>You must build a recursive function which:
> - receives a path
> - deletes all files: delete file (cPath+"\*.*")
> - gets a list of subdirectories (ADIR)
> - for each subdirectory (if any) call self
> - finally RMDIR (cPath)
>
>Hope this helps and bye.
>Jose.
Hello Jose:

Sounds good to me. Thank you for your time and your response. Its is appreciated.
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform