title: Rename files in a folder with extensions
body: <p>I have a folder full of .html files that i am trying to rename, but I want to keep the existing name as part of the new name, and I'm having trouble because of the new filename format. I need them to go from:</p>
  
  <p>filename.html </p>
  
  <p>to</p>
  
  <p>company.filename.pat.html </p>
  
  <p>The result is the existing filename needs to be sandwiched in the middle of some periods, and thats throwing me foe a loop. Anyone have suggestions on how to archive this? Command line or powershell both work.</p>
  
  <p>the "company" and "pat" parts will be the same for all files, so i dont need to account for any variations there, thankfully.</p>
  
  <p>Thanks in advance!</p>