title: Batch file to Create Folders with variable prefix
body: <p>I am trying to create folders in batch with Prefix where the prefix is project's name. I don't know what is the best way to achieve the result as below. Thanks in advance. Example Bellow:</p>
  
  <p><strong>Project's name = Project 1</strong>  </p>
  
  <pre><code>project-1_export\project-1_DWG  
  project-1_export\project-1_IMAGES 
  project-1_export\project-1_PDF 
  project-1_export\project-1_ZIP 
  project-1_LIBRARY 
  project-1_SUPPORT DOCUMENTS\project-1_Scans 
  project-1_SUPPORT DOCUMENTS\project-1_PDF\project-1_Client 
  project-1_SUPPORT DOCUMENTS\project-1_PDF\project-1_Others 
  </code></pre>
  
  <p><strong>Project's name = Project 2</strong> </p>
  
  <pre><code>project-2_export\project-2_DWG  
  project-2_export\project-2_IMAGES 
  project-2_export\project-2_PDF 
  project-2_export\project-2_ZIP 
  project-2_LIBRARY 
  project-2_SUPPORT DOCUMENTS\project-2_Scans 
  project-2_SUPPORT DOCUMENTS\project-2_PDF\project-2_Client 
  project-2_SUPPORT DOCUMENTS\project-2_PDF\project-2_Others 
  </code></pre>
  
  <p><strong>This is my attempt after browsing the resource here.</strong>  </p>
  
  <pre><code>@echo off
  set /p id= Enter Project ID?
  for /f "tokens=*" %%a in (file.txt) do (
  mkdir %id%_"%%a"
  )
  </code></pre>
  
  <p>where 'file.txt' contains a list of name of the folders and subfolders.<br>
  and Project ID is Project 1/2/3  </p>
  
  <p><strong>My questions are</strong></p>
  
  <p>I have no problem using the text file to create folders, but I don't know how to use it to create subfolder. Is it possible?</p>
  
  <p>If yes, how to put the project id prefix in front the subfolder's name?</p>