title: How to redirect output to a file which name is the current date and time?
body: <p>I would like to redirect the output of a command (in the Windows command line) to a file which name is the current date and time. For example:</p>
  
  <pre><code>my_path\mysqldump.exe my_database_name &gt; auto_generated_file_name
  </code></pre>
  
  <p>where <code>auto_generated_file_name</code> should be something like <code>2010_09_30___11_41_58.txt</code>.</p>
  
  <p>This command will automatically run from time to time. This is the reason I need the file name to be <strong>automatically</strong> generated.</p>
  
  <p>What is the easiest method to achieve this ?</p>