title: command line: how to copy files with the same name into one directory without overwriting
body: <p>I have the next folder structure:</p>
  
  <pre><code>C:\My Test\
  C:\My Test\Folder_1\activity[1].json
  C:\My Test\Folder_N\...\activity[1].json
  </code></pre>
  
  <h2>My goal is to:</h2>
  
  <p>copy all <code>activity*json</code> files to <code>D:\Output\</code> directory to have something like this:</p>
  
  <pre><code>D:\Output\activity[%unique_variable%].json
  D:\Output\activity[%unique_variable%].json
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>for /R "C:\My Test\" %%f in (activity*.json) do ( copy %%f D:\Output\activity%random%.json )
  </code></pre>