作業系統:
Service Pack:20H2
發生問題頻率:100%
是否有做Windows Update:yes
問題內容:
目前 PC 電源鍵 default 是對應到 shutdown.exe -s -t 0
但是有的程式會卡住無法自動關閉,如果遇到卡住有可能關機未完成。
如果我要寫一個 batch
for %%i in ( kmplayer.exe acdsee.exe winword.exe excel.exe) do taskkill /f /im "%%~i"
shutdown -t 0 -s -f
這樣的 Batch 有辦法把他串到電源鍵的關機動作嗎?