The reason it got left behind is because your .bat file is using the deltree command in conjunction with the file wildcard *.*, so it only deletes files in that directory, not sub folders.Quote:
Originally posted by Jessica11
it left a yellow folder in it called IE content5..and I use IE6. Why did it leave that there? And should it be deleted?
A solution to delete the directory as well as sub directories is:Code:deltree /y c:\windows\temp\*.*
deltree /y c:\windows\tempor~1\*.*
deltree /y c:\windows\cookies\*.*
deltree /y c:\windows\history\*.*
Which will completely delete cookies, history and tif folders. They will get rebuilt by windows upon booting.Code:deltree /y c:\windows\temp\*.*
deltree /y c:\windows\tempor~1
deltree /y c:\windows\cookies
deltree /y c:\windows\history
Don't do the same for temp as it doesn't get rebuilt.
Also if you want to clean out recent files, use
Code:deltree /y c:\windows\temp\*.*
deltree /y c:\windows\tempor~1
deltree /y c:\windows\cookies
deltree /y c:\windows\history
deltree /y c:\windows\recent
