I am writing a mini app to delete the cookies, history, temp files and other similar stuff. I started doing this to learn how to do it but, VB6 returns Permission Denied when I try delete the internet history and temp files. I am using DOS Batch file to do the work and calling it from the VB app. In the batch file I am using RMDIR to remove the Directory. Any ideas of ways around this?