Batch file to open Excel files -
i trying open excel files 1 one in particular folder (mentioned in code) through batch file. getting error file extension not read code or machine.
eg: have excel file in dir path "d:\eplans" "ep101.xlsx".
while running code error comes :
could not find file "ep101.xl
code:
chdir d:\eplans dir /b *.xlsx > list_dwg.txt /f "delims=<tab><space>" %%f in (list_dwg.txt) (start "d:\program files\microsoft office\office12\excel.exe" %%f)
ps: newbie batch programming.
i'd say
for %%a in (d:\eplans\*.xlsx) start "%%a"
i assume xlsx files associated excel anyway, txt file unneccesary, , %%a contain full path.
Comments
Post a Comment