Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to save browsing history for a certain day (Wednesday) from Internet Explorer 8 in text format.

I tried doing copy/paste from the history box in IE8, but it doesn't copy anything.

I was able to navigate to the hidden 'history' folder, but all I have is a bunch of folders and files with no apparent way to save it all in a text format.

Thanks.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Please open powershell on your computer and paste in the following code (right klick > insert) and press Enter.

function get-iehistory {            
[CmdletBinding()]            
param ()            

$shell = New-Object -ComObject Shell.Application            
$hist = $shell.NameSpace(34)            
$folder = $hist.Self            

$hist.Items() |             
foreach {            
 if ($_.IsFolder) {            
   $siteFolder = $_.GetFolder            
   $siteFolder.Items() |             
   foreach {            
     $site = $_            

     if ($site.IsFolder) {            
        $pageFolder  = $site.GetFolder            
        $pageFolder.Items() |             
        foreach {            
           $visit = New-Object -TypeName PSObject -Property @{            
               Site = $($site.Name)            
               URL = $($pageFolder.GetDetailsOf($_,0))            
               Date = $( $pageFolder.GetDetailsOf($_,2))            
           }            
           $visit            
        }            
     }            
   }            
 }            
}            
}

get-iehistory | export-csv $env:USERPROFILE\iehistory.csv -NoTypeInformation
invoke-item $env:USERPROFILE\iehistory.csv

The code exports the website name, url and date into a csv file that is saved in your profile path. The last line opens the file.

share|improve this answer
    
Amazing! Fabulous!!! –  xpt Aug 4 '13 at 3:09
    
Very nice indeed! Thanks! –  coding4fun Aug 4 '13 at 8:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.