title: How to create a RAR archive with current date in archive file name?
body: <p>I have folder <code>D:\data</code> with lots of subfolders and files and I want to archive this folder with a batch file to a specified directory with current date added in archive file name, e.g. <code>F:\11.08.2016_data</code>.</p>
  
  <p>My command line is so far:</p>
  
  <pre><code>"C:\Program Files\WinRAR\rar.exe" a -ep1 -r "data" "D:\data"
  </code></pre>
  
  <p>This command line creates RAR archive file <code>data.rar</code> in folder <code>My Documents</code>.</p>
  
  <p>How can I add date and change the archiving directory?</p>