String command = "taskkill /f /im WINWORD.exe";
Runtime.getRuntime().exec(command);
WINWORD.exe 為程序号,這裡是office的word的程序
/f /im 為 taskkill的參數
String command = "taskkill /f /im WINWORD.exe";
Runtime.getRuntime().exec(command);
WINWORD.exe 為程序号,這裡是office的word的程序
/f /im 為 taskkill的參數