I can open an excel using command lineHow can I close book3.xls from commandline?"excel.exe" /x "c:\temp\book3.xls"
Thanks
I can open an excel using command lineHow can I close book3.xls from commandline?"excel.exe" /x "c:\temp\book3.xls"
Thanks
If you are using XP, you can use the TASKKILL command to do the job. You can get a command list by entering TASKKILL /?. As an example:
TASKKILL /FI "WINDOWTITLE eq Microsoft Excel - Book3.xls"
Enter the above line as is, that will terminate Excel with Book3.xls loaded. Hope this helps.
PS - Those quotes, they are part of the command, so make sure you put them in as is - or copy the line.
Thanks