title: Batch file to open Excel files
body: <p>I am trying to open Excel files one by one in a particular folder (mentioned in code) through a batch file. But I am getting error as the file extension is not read fully by the code or machine.</p>
  
  <p>Eg: I have a excel file in dir path "D:\Eplans"  "EP101.xlsx".</p>
  
  <p>While running code error comes as :</p>
  
  <blockquote>
    <p>could not find the file "EP101.xl</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>chdir D:\Eplans
  dir /b *.xlsx &gt;  list_dwg.txt
  for /f "delims=&lt;tab&gt;&lt;space&gt;" %%f in (list_dwg.txt) do (start "D:\Program Files\Microsoft  Office\Office12\EXCEL.exe" %%f)
  </code></pre>
  
  <p>PS: I am just a newbie to the batch programming.</p>