View Single Post
  #6  
Old April 18th 09, 01:12 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Robert Aldwinckle
external usenet poster
 
Posts: 472
Default Export Folder Column data to Excel


"Graham" wrote in message ...
Hi, I want to export the column data e.g. Subject, Date & Time, & From, to
Excel (or similar) for editing to insert into a report. I don't need the
content of each email, just the message data.


Can this be done ?



Roughly. Drag all the messages to an empty directory.
That creates .eml or .nws files from them.
Those are also text files, so you can use other standard parsing
tools to create the records from them.

For example, entering this at the command line of a cmd window
at that directory level would extract only lines like you're asking for:

findstr /i "^Subject: ^Date: ^Time: ^From:" *

(Leave the ignore case switch off if you are sure of the capitalization
of your header labels.)


Then you would have to figure out how to combine the four lines
that would find into one record for your Excel program to read.

One option I think would be the Log Parser Utility...

http://www.microsoft.com/downloads/d...displaylang=en
quote
Log parser is a powerful, versatile tool that provides universal query access to
text-based data such as log files, XML files and CSV files, as well as key data
sources on the Windows® operating system such as the Event Log, the Registry,
the file system, and Active Directory®.
/quote

I am sure you could use Log Parser to solve your problem
but I haven't used it enough to suggest how you might do that
exactly. (It would probably quickly go too far off-topic anyway.)
I think you could find afficionados who would be keen
to demonstrate how though. ; )


Regards
Graham



Good luck

Robert Aldwinckle
---


Ads