[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

List contents of Internet Explorer History using VBS / WSH

Posted on 2006-11-14
2
Medium Priority
?
872 Views
Last Modified: 2008-01-09
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?
0
Comment
Question by:skrysiak
2 Comments
 
LVL 4

Accepted Solution

by:
hclgroup earned 500 total points
ID: 17939996
That code may be outdated.

you may need to look index.dat if you want to read IE's history

check out the code here
http://www.codeproject.com/vbscript/Internet_Explorer_Spy.asp
0
 

Author Comment

by:skrysiak
ID: 17963790
Fantastic! Works fine with IE7 also.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question