title: Batch file rename - find and replace
body: <p>I'm trying to write a Windows batch file to rename a set of files based on their original name. What I essentially want to do is find text within a file name and replace it with other text. 
  For example, if the files had the naming structure "Family Christmas 001.jpg" I might want to change it to "Photos - Xmas 001.jpg". ie replace "Family Christmas" with "Photos - Xmas". This is just an example.</p>
  
  <p>I've found a piece of code from a user of this site, dbenham, that does almost exactly what I'm after. In this example he's replacing "120x90" in a filename to "67x100"
  Here's the code:</p>
  
  <pre><code>@echo off
  setlocal enableDelayedExpansion
  for %%F in (*120x90.jpg) do (
    set "name=%%F"
    ren "!name!" "!name:120x90=67x100!"
  )
  </code></pre>
  
  <p>Can anyone help me adapt this code to make it handle spaces in the file name?</p>
  
  <p>Thanks</p>