title: Ignore subsequent delimiters when parsing a string
body: <p>with the code below, I'm trying to get ProjName to read:</p>
  
  <p>"word1 word2 - word3"</p>
  
  <p>However the output I'm getting is:</p>
  
  <p>"word1 word2"</p>
  
  <p>How can I ignore subsequent instances of the delimiter?</p>
  
  <pre><code>@echo
  
  SET FolderName="100 - word1 word2 - word3"
  
  for /F "tokens=2* delims=-" %%i IN (%FolderName%) DO (set ProjName=%%i)
  
  echo %ProjName%
  
  pause
  </code></pre>
  
  <p>Many thanks.</p>
  
  <p>EDIT - just to add, the 'words' could also be numbers.</p>