title: how to rename files to sub directories using cmd
body: <p>I have a several levels of folders and these folders contain *.csv files. I need to rename these files in next format: </p>
  
  <p>Source sub-directories with files:</p>
  
  <pre><code>C:\Folder1\Folder2\FileName1.csv
  C:\Folder1\Folder2\FileName2.csv
  ...
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>C:\Folder1\Folder2\Folder1_Folder2_FileName1.csv
  C:\Folder1\Folder2\Folder1_Folder2_FileName2.csv
  ...
  </code></pre>
  
  <p>Could you someone help with this? </p>
  
  <p>Thanks</p>