Could someone explain how the FindFirstFile/FindNextFile works and possibly post a sample code? I want to make an .exe that deletes all of the cookies and temp internet files. I've looked on posts on how to delete directories, but I just started with C so I didn't really understand them. The remove () function doesn't delete directories and it only deletes one file. So if anyone could help I would greatly appreciate it. Thanks.