::關閉IE FOR /F "tokens=2" %%I in ('TASKLIST /NH /FI "WINDOWTITLE eq Google搜尋 - Microsoft Internet Explorer" ' ) DO SET PID=%%I ECHO %PID% TASKKILL /PID %PID% ::關閉Excel FOR /F "tokens=2" %%I in ('TASKLIST /NH /FI "WINDOWTITLE eq Microsoft Excel - Book1" ' ) DO SET PID=%%I && ECHO %PID% && TASKKILL /PID %PID%
沒有留言:
張貼留言