title: 7zip / winrar command to extract a folder with path intact to specific folder but excluding parent source path
body: <p>example</p>
  
  <p>There is a file "sample.rar".</p>
  
  <p>Folder structure is: "rising\dawn\ and here there are many (folders1, folders2 and file1, file2)" in this archive.</p>
  
  <p>i have used following command</p>
  
  <pre><code>7z.exe x "sample.rar" "rising\dawn\*" -oi:\delete
  </code></pre>
  
  <p><strong>The result is:</strong>
  all files and folders in "rising\dawn\" are extracted to "i:\delete" folder but the empty parent folders "rising\dawn\" are also created in destination folder.</p>
  
  <p>e.g. destination looks:</p>
  
  <pre><code>i:\delete\rising\dawn\folder1\file1.bmp
  
  i:\delete\rising\dawn\folder2\subfolder
  
  i:\delete\rising\dawn\file1.txt
  
  i:\delete\rising\dawn\file2.txt
  </code></pre>
  
  <p><strong>i don't want "rising\dawn\" empty folders to be created but the folder structure there onwards must be as is in the archive.</strong></p>
  
  <p><strong>i want the result:</strong></p>
  
  <pre><code>i:\delete\folder1\file1.bmp
  
  i:\delete\folder2\subfolder
  
  i:\delete\file1.txt
  
  i:\delete\file2.txt
  </code></pre>
  
  <p><strong>at last i found a way out solution. thanks to the winrar support. i have accepted it as an answer below.</strong></p>
  
  <p><strong>if you find the question useful don't forget to click the up-vote button.</strong></p>