Clearing IE cache and cookies through VBA?

  • Thread starter Thread starter Martin Schneider
  • Start date Start date
M

Martin Schneider

Hi!

I'd like to clear IE's browser cache and cookies (i.e. the temporary
internet files folder). As this doesn't seem to be possible on a file
system level, I'd like to instruct the InternetExplorer to do this.

I am familiar with the InternetExplorer.Application object but was
unable to find an object reference or sample code how to call menu items
- can anybody point me in the right direction, please?

Thanks for your support.

Martin
 
Martin said:
Hi!

I'd like to clear IE's browser cache and cookies (i.e. the temporary
internet files folder). As this doesn't seem to be possible on a file
system level, I'd like to instruct the InternetExplorer to do this.

Did not find a way in VBA to do this but a workaround:

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

will do the job.

Best regards,
Martin
 
Back
Top