title: VBScript to search two Strings in a TXT
body: <p>i try to make a VBScript that read a txt and search for two strings and gives out <strong>only the last results.</strong></p>
  
  <p>String 1: <strong>Hello123</strong></p>
  
  <p>String 2: <strong>Test123</strong></p>
  
  <p>The TXT looks like this:</p>
  
  <pre><code>27.07.2010 09:45 ... DumDumDum ... 
  27.07.2010 09:45 ... BlaBlaBla ... 
  27.07.2010 09:45 ... Hello123 ... 
  27.07.2010 09:45 ... BlaBlaBla ... 
  27.07.2010 09:45 ... DumDumDum ... 
  27.07.2010 09:45 ... DumDumDum ... 
  27.07.2010 09:45 ... Hello123 ...   'This Result
  27.07.2010 09:45 ... BlaBlaBla ... 
  27.07.2010 09:45 ... BlaBlaBla ... 
  27.07.2010 09:45 ... DumDumDum ... 
  27.07.2010 09:45 ... Test123 ... 
  27.07.2010 09:45 ... DumDumDum ... 
  27.07.2010 09:45 ... Test123 ...        'And this Result
  27.07.2010 09:45 ... DumDumDum ... 
  27.07.2010 09:45 ... BlaBlaBla ... 
  </code></pre>
  
  <p>I try something like this, but i don't know how to do this:</p>
  
  <p>Read the txt with ReadALL i think and than the search part.</p>
  
  <pre><code>if string 1 not found then
      msgbox "nothing found"
      Goto NEXT
  else
      if string 2 not found then
          msgbox "nothing found"
      else
          msgbox "found"
  
      End if
  End if
  NEXT
  </code></pre>
  
  <p>Has someone an idea and can help me?</p>
  
  <p>Greetings,
  matthias</p>