WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Shell
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Delete IE History Temporary and Cookies

 Keywords: Delete IE History Temporary Internet Files Cookies  

Answer:

#DefineFunction GetNameSpaceFolder(Num)
   oApp = ObjectCreate("Shell.Application")
   oFolder = oApp.Namespace(Num)
   oFolderItem = oFolder.Self
   Return oFolderItem.Path
#EndFunction

#DefineFunction Whack(Item)
   Item = StrLower(Item)
   If Item=="ietemp" Then Num = 32
   If Item=="cookies" Then Num = 33
   If Item=="history" Then Num = 34
   Path = GetNameSpaceFolder(Num)
   If Path=="" Then Return
   RunHideWait(Environment("Comspec"),'/c RD /s /q "':Path:'"')
#EndFunction

BoxOpen("Internet Explorer Clean Up","")

BoxText("Deleting History...")
Whack("History")

BoxText("Deleting Cookies...")
Whack("Cookies")

BoxText("Deleting Temporary Internet Files...")
Whack("IETemp")

BoxShut()
Message("","Done")

Article ID:   W18185
Filename:   Delete IE History Temporary and Cookies .txt
File Created: 2010:02:17:11:59:48
Last Updated: 2009:04:20:08:46:10