title: Replace a substring in batch script
body: <p>I have three variables: string, search, replace. I wish to substitute the %search% in %string% with %replace%.</p>
  
  <p>This works but needs hard characters.</p>
  
  <p>SET modified=%string:morning=evening%</p>
  
  <p>This seems to be answer in the forums but does not work. It simply stores the entire line at %modified%</p>
  
  <p>SET modified=!string:%search%=%replace%!</p>