Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove an existing directory programatically?
Message
De
16/10/2002 02:49:30
 
 
À
15/10/2002 22:22:52
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:
00711589
Vues:
16
>Hi all:
>
>I am attempting to first, delete an existing directory and all subfolders within that directory and then create a new directory with subdirectories where needed.
>
>I have tried the RMDIR and RD commands - but get a message that says "File Access is Denied". Clicking HELP tells me that I am trying to write to a protected file (whihc is not true).
>
>Any suggestions? Thank you in advance.
Make sure that you erase all files in each directory before you attempt to remove it and remove each directory starting from the lowest level up. If you are already doing this, it is probably a disk cache issue. You might try checking the directory with adir() to be sure that it is empty or perhaps include a delay to allow flushing of cached deletes.
HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform