I have a simple batch file that opens 2 excel files. One updates new data to the other.
I want to then close both files, and then delete one of them.
My bat file will not process the taskkill command as long as the .xls files are open, and nothing I can think of will close or terminate these 2 open xls files.
How can I terminate open .xls files in a batch routine?
Here's my .bat >>
D:\quotes.csv | D:\Data.XLS | Pause |
taskkill /f /im excel.exe