Solved

List contents of Internet Explorer History using VBS / WSH

Posted on 2006-11-14
2
831 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 125 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now