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.
Eg: I have a excel file in dir path "D:\Eplans" "EP101.xlsx".
While running code error comes as :
could not find the file "EP101.xl
Code:
chdir D:\Eplans
dir /b *.xlsx > list_dwg.txt
for /f "delims=<tab><space>" %%f in (list_dwg.txt) do (start "D:\Program Files\Microsoft Office\Office12\EXCEL.exe" %%f)
PS: I am just a newbie to the batch programming.