« Previous Next »

Thread: textfile to textfile - need help

Last post 06-15-2007 11:45 AM by LogParser User : Jeff. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-15-2007, 2:00 AM

    textfile to textfile - need help

    I am beginner - hope anyone can advise me. Have following textfile


    !Subject,!From,!Date,!Lines,!Body
    Subject:aaa
    From:bbb
    Date:ccc
    Lines:ddd
    Body:eee
    ......body
    lines.....
    !Subject,!From,!Date,!Lines,!Body
    Subject:fff
    From:ggg
    Date:hhh
    Lines:iii
    Body:jjj
    ......body
    lines..... 
     

    and want new textfile (ready to import into MS-Access): 
     

    "Subject","From","Date","Lines","Body"
    "aaa","bbb","ccc","ddd","eee","......bodylines....."CR/LF
    "fff","ggg","hhh","iii","jjj","......bodylines....."CR/LF
     
     

    Possible in LogParser ?

    In advance thank you 

  • 06-15-2007, 3:45 AM In reply to

    RE: textfile to textfile - need help

    Unfortunately, Logparser cannot really deal with multine type records; your best bet is to use a short vbscript to reformat it

    Graham

  • 06-15-2007, 11:45 AM In reply to

    RE: textfile to textfile - need help

    Graham is correct, out of the box Log Parser won't do what you want.  That said, the format looks pretty simple.  If you can write a little bit of VBScript (or JScript), you could make a custom input parser (which would allow you to take advantage of the rest of Log Parser's features.

     

Page 1 of 1 (3 items)
Microsoft Communities