Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to remove an existing directory programatically?
Message
From
16/10/2002 02:49:30
 
 
To
15/10/2002 22:22:52
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00711569
Message ID:
00711589
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform