title: Renaming a Folder using Batch Script
body: <p>I am currently trying to Rename the Folder that was recently created, i know there is a command called REN (or) RENAME but it is used to rename a file and not the Folder.</p>
  
  <pre><code>Below is the code that i am working to achieve this.
  
      for %%# in ("%mask%_*") do (
       if not exist "%destination_dir%\%mask%" mkdir "%destination_dir%\%mask%"
       move /y "%%~#" "%destination_dir%\%mask%"
       if exist "%destination_dir%\%mask%" ren "%destination_dir%\%mask%_%date:~10,4%%date:~7,2%%date:~4,2%-%time:~0,2%%time:~3,2%"
      )
  </code></pre>
  
  <p>How to achieve this.?</p>