title: Move and rename files from folder to folder as a .bat file and adding modified date at beginning
body: <p>I have spent many hours trying to work this out and no luck.</p>
  
  <p>Scenario:
  Have multiple different file names, but same extension in a folder. On Windows server 2008 64bit.
  Want to move them to another folder using a schedule batch job. .bat. During the move I want to rename them to include their last modified date. I am trying to put into this format:</p>
  
  <pre><code>yyyymmddhhmmss-name.zip
  </code></pre>
  
  <p>I have looked at PowerShell and <code>for</code> commands and just can't work it out. </p>
  
  <p>I found this 3-line piece of code and it worked well on Windows 7 but not on Windows Server 2008!</p>
  
  <pre><code>@echo off
  set Date=%date:~10,4%%date:~4,2%%date:~7,2%
  move d:\Test\*.zip d:\Test1\*%Date%.zip
  </code></pre>
  
  <p>On the Server, it could not understand the <code>*%Date%</code>. As soon as I removed the <code>*</code>, it worked. I have tried different variations with quotes etc. but not working. I understand the date is not the solution I am after, but if I can't get this simple line to work it wouldn't matter with the rest.</p>
  
  <p>Oh and the offsets did work so I got the date to appear <code>yyyymmdd</code>. 
  I have avoided PowerShell as I am not good with it and I also looked at VBS. But it's not strong points. Can anyone assist?</p>
  
  <p>I know lots of questions are out there similar but nothing quite matches what I am trying to do.</p>