How to delete IE temporary files with VBS?
If using BAT, some IE temporary files cannot be deleted. If using VBS to simulate keyboard operations, sometimes the focus cannot be found. Please help me modify the code, thank you?
WScript.Sleep 1600
WshShell.AppActivate "Internet Properties"
WScript.Sleep 600
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "%D"
WScript.Sleep 600
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "%A"
WScript.Sleep 600
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "%D"
WScript.Sleep 600
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "%Y"
WScript.Sleep 1000
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "{esc 2}"
[ Last edited by 5872169 on 2009-2-20 at 18:31 ]
If using BAT, some IE temporary files cannot be deleted. If using VBS to simulate keyboard operations, sometimes the focus cannot be found. Please help me modify the code, thank you?
WScript.Sleep 1600
WshShell.AppActivate "Internet Properties"
WScript.Sleep 600
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "%D"
WScript.Sleep 600
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "%A"
WScript.Sleep 600
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "%D"
WScript.Sleep 600
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "%Y"
WScript.Sleep 1000
WshShell.AppActivate "Internet Properties"
WshShell.SendKeys "{esc 2}"
[ Last edited by 5872169 on 2009-2-20 at 18:31 ]

