Link to home
Start Free TrialLog in
Avatar of skrysiak
skrysiakFlag for United Kingdom of Great Britain and Northern Ireland

asked on

List contents of Internet Explorer History using VBS / WSH

So far I have the following code:

Const LOCAL_SETTINGS_HISTORY = &H22&

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(LOCAL_SETTINGS_HISTORY)
Set objFolderItem = objFolder.Self
Wscript.Echo objFolderItem.Path

Set colItems = objFolder.Items
For Each objItem in colItems
    Wscript.Echo objItem.Name
Next

When it runs, it does indeed show the contents of Internet Explorer History, although only as the category headings "3 Weeks Ago", "Last Week", "Monday" etc.! Is there any way of reading (and echoing) every item in the History list using WSH?
ASKER CERTIFIED SOLUTION
Avatar of hclgroup
hclgroup

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of skrysiak

ASKER

Fantastic! Works fine with IE7 also.