title: Renaming a list of files and creating folder in Powershell
body: <p>I'm in need a script, in PowerShell or batch script, that will do the following.</p>
  
  <ol>
  <li><p>Rename a file to append creation date minus 1 day to the filename. </p>
  
  <p>For example:</p>
  
  <p><em>foo.xlsx   (created 7/27/2011)</em></p>
  
  <p><em>foo-2011-07-26.xlsx    --note, it's yesterday's date.</em> </p>
  
  <p>Date format isn't too important as long as it's there. There will be 10 files (all with the same creation date), so either I can copy and paste the same renaming line for the different files (just rename the filename) or just have the script affect all *.xlsx files in the existing folder. </p></li>
  <li><p>Create a new folder where those files are and name it 'fooFolder-2011-07-26' (yesterday's date). </p></li>
  <li>Move those renamed files to that folder. </li>
  </ol>
  
  <p>I only have limited experience with PowerShell. It's on my todo list of languages to learn..</p>