Quote Originally Posted by Overwhelm
Kleid-O,

Yes, it works now. (Odd though, I could swear I tested /Q also.)

But anyway it works, yet it doesn't delete subfolders. How's this done?
You use the /R Recursive tag to delete subfolders:
Code:
system("del /Q /R C:\\WINDOWS\\Temp\\Cookies");
The R may not delete the subfolders, but it deletes all of the contents within the subfolders. If you really want to delete the subfolders too (even though they'll be emptied), you'll want to create a batch file, but that's pretty advanced! Here's another alternative:

Are you sure deltree doesn't exist as a command?
deltree Command Reference
If you can get the tool, try this:
Code:
system("deltree /Y C:\\WINDOWS\\Temp\\Cookies");
/Y is just like /Q for the del function. It doesn't ask questions. I hope this helps you!