How do I delete a folder?
How do I delete a folder?
system("rmdir directoryname");
Okay, that is good if there is nothing in the folder. But what if there is stuff in the folder? Do I have to delete that all and then the folder? Or is there a way just to delete the folder, even if it isn't empty?
Kyoto
Last edited by Kyoto Oshiro; 03-31-2002 at 11:34 AM.
If there are no sub-folders, then #include <windows.h> and use FindFirstFile(); and FindNextFile();
Isn't there a way to just delete a folder, and everything in it? I don't want to have to delete every single file then the folder, because what if there are 100 files? Any ideas on how to do this?
Kyoto