title: Batch Script Parsing Dir Command
body: <p>Hello newbie looking for some help. I am trying to write a script to search all files and folders in my drive which have a certain identifier. For example "ID -"</p>
  
  <p>I was using the following to get files and directories listed in a log file:</p>
  
  <pre><code>dir ID * /A:-D-H /B /S &gt;&gt; C:\FileCatalogue.log 2&gt;&gt; C:\FileCatalogue.log
  dir ID * /A:D-H /T:C /S &gt;&gt; C:\DirCatalogue.log 2&gt;&gt; C:\DirCatalogue.log
  </code></pre>
  
  <p>However I want the output to be in 3 tabbed columns:</p>
  
  <p>FILE {tab} DIR {tab} ID</p>
  
  <p>ID123 - YYYY - myfile.txt  {tab}   C:/tmp/tmp  {tab}    ID123 - YYYY </p>
  
  <p>etc..</p>
  
  <p>etc...</p>
  
  <p>Any help would be greatly appreciated!
  Victor</p>