title: VBS multiple REPLACE usage
body: <p>I did logEditor for my RSYNC log his task is to replace status strings in generated log file and created edited new one for end user. For this I am using REPLACE method im VBS. Everything is working well exept one problem, which I still cant solve.</p>
  
  <p>When I use REPLACE multiple times then it takes only first replace usage, writes it into file and ignore others. But i need to use replace multipletimes to replace multiple statuses</p>
  
  <pre><code>Function logEditor(strInputFile, strLogFileName)
  Const ForReading = 1
  Const ForWriting = 2
  Set objFSO = CreateObject("Scripting.FileSystemObject")
  Set objFile = objFSO.OpenTextFile(strInputFile, ForReading)
  strText = objFile.ReadAll
  objFile.Close
  
  'replaceOfStatus
  strNewText1 = Replace(strText, "cd+++++++++", "CDir")
  'this one is going to be ignored
  strNewText2 = Replace(strText, "&lt;f+++++++++", "FILE")
  
  Set objFile = objFSO.OpenTextFile(strLogFileName, ForWriting)
  objFile.WriteLine strNewText1 'writed one
  objFile.WriteLine strNewText2 'ignored one
  objFile.Close
  End Function
  call logEditor(strInputFile, strLogFileName)
  </code></pre>
  
  <p>This is sample of rsync log </p>
  
  <pre><code>2018/04/27 12:29:40 [792] .d..t...... texlive/
  2018/04/27 12:33:31 [792] cd+++++++++ texlive/Downloads/
  2018/04/27 12:33:31 [792] &lt;f+++++++++ texlive/Downloads/Backup.zip
  2018/04/27 12:33:32 [792] &lt;f+++++++++ texlive/Downloads/ChromeSetup.exe
  2018/04/27 12:33:43 [792] &lt;f+++++++++ texlive/Downloads/test.txt
  2018/04/27 12:33:43 [792] &lt;f+++++++++ texlive/Downloads/desktop.ini
  </code></pre>
  
  <p>Can you guys please help me and tell me where is my logic bad at?</p>
  
  <p>Thank you in advance for all the answers.</p>
  
  <p>EDIT_0:
  At the end of this method I need to new log file look this:</p>
  
  <pre><code>2018/04/27 12:29:40 [792] Dir texlive/
  2018/04/27 12:33:31 [792] CDir texlive/Downloads/
  2018/04/27 12:33:31 [792] File texlive/Downloads/Backup.zip
  2018/04/27 12:33:32 [792] File texlive/Downloads/ChromeSetup.exe
  2018/04/27 12:33:43 [792] File texlive/Downloads/test.txt
  2018/04/27 12:33:43 [792] File texlive/Downloads/desktop.ini
  </code></pre>