Is it possible to use vbscript to start Internet Explorer and tell it
to delete everything in the Temporary Internet Folder? Specifically,
I would like to automate "Tools" -> "Internet Options..." -> "Delete
Files..." -> "OK". I know how to do:

Set objIE = CreateObject( "InternetExplorer.Application" )
objIE.Navigate
Do Until objIE.ReadyState = 4
WScript.Sleep 500
Loop

But I have no idea how to automatically click on the appropriate menu
items and buttons with vbscript. Thanks in advance to all who
respond,

Leslie

Re: Automating Internet Explorer toolbar actions by mike

mike
Thu May 27 01:30:56 CDT 2004

I can think of a couple of very hacky ways to do this:

1. Send Keys

2. Track down the location in Registry of the temporary internet folder and
simply delete everything there.

Mike



"Leslie Houk" <lhouk@ghg.net> wrote in message
news:e4ed9e5e.0405260825.3a33cef9@posting.google.com...
> Is it possible to use vbscript to start Internet Explorer and tell it
> to delete everything in the Temporary Internet Folder? Specifically,
> I would like to automate "Tools" -> "Internet Options..." -> "Delete
> Files..." -> "OK". I know how to do:
>
> Set objIE = CreateObject( "InternetExplorer.Application" )
> objIE.Navigate
> Do Until objIE.ReadyState = 4
> WScript.Sleep 500
> Loop
>
> But I have no idea how to automatically click on the appropriate menu
> items and buttons with vbscript. Thanks in advance to all who
> respond,
>
> Leslie



Re: Automating Internet Explorer toolbar actions by lhouk

lhouk
Thu May 27 09:50:33 CDT 2004

Mike,

Well, I tried the following (which I got from another post in this group):

Set objWShell = CreateObject( "WScript.Shell" )
strUserProfile = objWShell.ExpandEnvironmentStrings( "%USERPROFILE%" )
strHistoryFile = strUserProfile & _
"\Local Settings\Temporary Internet Files\Content.IE5\index.dat"
strCommand = "%comspec% /c del ""strHistoryFile"" /f /s /q"
objWShell.Run strCommand, 0, True
Set objWShell = Nothing

and it did not delete the file. So, I figure that Internet Explorer
is the only thing that can clean up it's own history file.

I'm not familiar with Send Keys; can you post some sample code? Thanks,

Leslie

"mike" <transam@<REMOVETHISINCLUDINGBRACKETS>netspace.net.au> wrote in message news:<40b58a41$1@dnews.tpgi.com.au>...
> I can think of a couple of very hacky ways to do this:
>
> 1. Send Keys
>
> 2. Track down the location in Registry of the temporary internet folder and
> simply delete everything there.
>
> Mike
>
> "Leslie Houk" <lhouk@ghg.net> wrote in message
> news:e4ed9e5e.0405260825.3a33cef9@posting.google.com...
> > Is it possible to use vbscript to start Internet Explorer and tell it
> > to delete everything in the Temporary Internet Folder? Specifically,
> > I would like to automate "Tools" -> "Internet Options..." -> "Delete
> > Files..." -> "OK". I know how to do:
> >
> > Set objIE = CreateObject( "InternetExplorer.Application" )
> > objIE.Navigate
> > Do Until objIE.ReadyState = 4
> > WScript.Sleep 500
> > Loop
> >
> > But I have no idea how to automatically click on the appropriate menu
> > items and buttons with vbscript. Thanks in advance to all who
> > respond,
> >
> > Leslie