Re: system() help
- Posted by ghaberek (admin) Aug 15, 2008
- 1416 views
gbonvehi said...
Wow, nice work Greg, I think he should use that wrapper heh :) Mine actually wraps removeDirectory, but also does a recursive file deletion inside it if it's not empty. I could have used euphoria's dir() routine (in case someone is thinking about that), but well, I was wrapping one thing... and I was tempted by another.. heh
The thing about SHFileOperation is that it acts just as if you were performing the operation yourself. So if you FO_DELETE a directory, the whole thing gets deleted automatically. You could also include FOF_ALLOWUNDO to allow the user to reverse your operation, should they be so inclined.
-Greg