
Delete temp.internet files ecc..(newbie)
Is it possible to clear temp.internet files ecc..with a vbs file?
With a batch file it is necessary to end explorer.exe using
the command tskill because it blocks index.dat.
I tried the following to clear cronology etc..but surely
it isn't the ideal!
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run "cmd /c inetcpl.cpl"
WScript.Sleep 100
WshShell.SendKeys "{TAB}"
WScript.Sleep 100
WshShell.SendKeys "c"
WScript.Sleep 100
WshShell.SendKeys "s"
WScript.Sleep 100
WshShell.SendKeys "e"
WScript.Sleep 100
WshShell.SendKeys "~"
WScript.Sleep 100
WshShell.SendKeys "f"
WScript.Sleep 100
WshShell.SendKeys "~"
WScript.Sleep 100
WshShell.SendKeys "{ESC}"