Hello everyone,
I am wondering how to remove a non-empty directory on Windows? I find that function RemoveDirectory works only for empty directory.
thanks in advance,
George
Printable View
Hello everyone,
I am wondering how to remove a non-empty directory on Windows? I find that function RemoveDirectory works only for empty directory.
thanks in advance,
George
You could remove all the files from the directory, then use RemoveDirectory.
Recursively remove all files from the directory, deleting each directory as you do. Look at recursive functions if you have not used them before.