Hi,
How is it possible in VB to know the existance of a particular word in a multi line text.
To be more specific, In my VB code I am capturing the output of a batch file in command line execution into a variable sOutput. I would like to see if the execution has been successful. For this, I need to know if the word successful is found in sOutput.
sOutput has multiple lines like :
C:\Documents and Settings\x_xyz\Desktop>cd c:\
C:\>set ROOT=C:\TCE
C:\>call C:\TCE\data\vars
mode is successful. please proceed.
I wish to search for the word successful and accordingly display message to the user.
how is this possible.
Please help..
Vidya.
How is it possible in VB to know the existance of a particular word in a multi line text.
To be more specific, In my VB code I am capturing the output of a batch file in command line execution into a variable sOutput. I would like to see if the execution has been successful. For this, I need to know if the word successful is found in sOutput.
sOutput has multiple lines like :
C:\Documents and Settings\x_xyz\Desktop>cd c:\
C:\>set ROOT=C:\TCE
C:\>call C:\TCE\data\vars
mode is successful. please proceed.
I wish to search for the word successful and accordingly display message to the user.
how is this possible.
Please help..
Vidya.