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

Click here to load this message in the networking platform