Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Problem with VBScript, Outlook and line jumps

Reply
 
Old 04-20-2009   #1 (permalink)
Bernardo Achirica


 
 

Problem with VBScript, Outlook and line jumps

I'm trying to create an script to process all the NDR messages that we
receive in an Exchange mailbox, and I need to locate some text strings inside
the message body.

So I have a text string with the hole message body (and multiple lines) and
I want to "cut" a string from one specific word to the end of that line. I've
tried to locate the line end with InStr and every option I've found on the
internet... Chr(10), Chr(13), vbCrLf, vbCr, "\n"... and everyone of them with
both text and binnary comparisons... and no luck !!!

Any suggestions?? Please??

My System SpecsSystem Spec
Old 04-20-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: Problem with VBScript, Outlook and line jumps


"Bernardo Achirica" <Bernardo Achirica@xxxxxx> wrote in
message news:BC02C00F-6067-465F-AC9E-2372E4DB95C2@xxxxxx
Quote:

> I'm trying to create an script to process all the NDR messages that we
> receive in an Exchange mailbox, and I need to locate some text strings
> inside
> the message body.
>
> So I have a text string with the hole message body (and multiple lines)
> and
> I want to "cut" a string from one specific word to the end of that line.
> I've
> tried to locate the line end with InStr and every option I've found on the
> internet... Chr(10), Chr(13), vbCrLf, vbCr, "\n"... and everyone of them
> with
> both text and binnary comparisons... and no luck !!!
>
> Any suggestions?? Please??
Sorry, can't tell without seeing your code.


My System SpecsSystem Spec
Old 05-06-2009   #3 (permalink)
Reventlov


 
 

Re: Problem with VBScript, Outlook and line jumps

Il giorno Mon, 20 Apr 2009 06:04:01 -0700, =?Utf-8?B?QmVybmFyZG8gQWNoaXJpY2E=?= <Bernardo
Achirica@xxxxxx> ha scritto:
Quote:

>I'm trying to create an script to process all the NDR messages that we
>receive in an Exchange mailbox, and I need to locate some text strings inside
>the message body.
>
>So I have a text string with the hole message body (and multiple lines) and
>I want to "cut" a string from one specific word to the end of that line. I've
>tried to locate the line end with InStr and every option I've found on the
>internet... Chr(10), Chr(13), vbCrLf, vbCr, "\n"... and everyone of them with
>both text and binnary comparisons... and no luck !!!
You can Read All the file and then MyArray=Split(Myfile.ReadAll, vbcrlf)
You obtain a zero-base array in which to search the strings with instr.
then cut the string from instr(myarray(i)) to len(myarray(i)) using mid( )

--
Giovanni Cenati (Bergamo, Italy)
Write to "Reventlov" at katamail com
http://digilander.libero.it/Cenati (Esempi e programmi in VbScript)
--
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to edit the description of shares using command-line or vbscript? VB Script
Output XML to Single Line Log File using VBScript VB Script
Returning a line from an input file using vbscript VB Script
How to debug a vbscript/ show each line BEFORE execution and with var values? VB Script
vbscript with outlook pst VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46