How can I do that?
Please and thanks.
How can I do that?
Please and thanks.
??
The predefined functions can only delete empty folders to my knowlege.
Look up SHFileOperation. You'll want to use FO_DELETE with a pFrom something like "C:\\files\\*\0"
thanks, but like how do I delete the subdirectorys with out deleting the current dir?
SHFILEOPSTRUCT fop;
fop.hwnd = hwnd;
fop.wFunc = FO_DELETE;
fop.pFrom = szpathint;
fop.pTo = NULL;
fop.fFlags = FOF_ALLOWUNDO | FOF_FILES || FOF_NOCONFIRMATION;