How can I delete all of the files in a folder?
How can I delete all of the files in a folder?
1) Select the directory (in explorer)
2) Click with the left mouse button once on the first file.
3) Scroll down to the last file.
4) Press and hold Shift.
5) Click with the left mouse button on the last file (while Shift is down).
6) Press Delete (while Shift is down).
7) Press Enter when the pop-up window appears.
8) Done.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
I meant how would I do that with a C++ funtion in a program.
If we told you... you may want to send the executable to an enemy and erase his/her system files... so why should we tell you?
>>>It is by will alone I set my mind in motion!
-Dune
Damn mentats....
Blue
I am not asking because I want to write a virus or something of that nature. I would like to write a program that clears temporary internet files(c:\windows\temporary internet files), temp files(c:\windows\temp) upon boot. Maybe I can add the ability to search a hardrive for temp files (.tmp, .bak...).
I have no interest in hariming anyone else's computer. If you don't feel comfertable telling me so be it.
im very trusting so ill help.
the include file is process.hCode:system("erase C:\windows\temp -y"); system("erase C:\windows\tempor~1 -y");