請問這個批次檔該怎麼寫 - Windows

By Isla
at 2009-05-10T08:19
at 2009-05-10T08:19
Table of Contents
※ 引述《knives ()》之銘言:
: ※ [本文轉錄自 EzHotKey 看板]
: 作者: knives () 看板: EzHotKey
: 標題: [請問] 請問這個批次檔該怎麼寫
: 時間: Sun May 10 04:00:14 2009
: 因為uTorrent預設一但非正常關閉程式,之後重開程式,就會再重新檢查檔案
: 比方說,在關機之前,若沒有先手動關閉程式的話,就會有上述的Bug
: 想說有沒有辦法寫個批次檔,自動幫我做關閉uTorrent的動作,放在關機時啟動
: 請問該怎麼寫
taskkill
它在普通呼叫時會試著送關閉訊號給程式
就像是手動點 X 一樣
用法是 taskkill /im 執行檔檔名
/im 表示後面的是檔名
像你要的就是 taskkill /im utorrent.exe
這樣就行了
至於關機時啟動...我就不太清楚 Windows 有沒有設計這種地方了
再說關機時 Windows 也是一樣的送關閉訊號給每支程式啊...
--
'You've sort of made up for it tonight,' said Harry. 'Getting the
sword. Finishing the Horcrux. Saving my life.'
'That makes me sound a lot cooler then I was,' Ron mumbled.
'Stuff like that always sounds cooler then it really was,' said
Harry. 'I've been trying to tell you that for years.'
-- Harry Potter and the Deathly Hollows, P.308
--
: ※ [本文轉錄自 EzHotKey 看板]
: 作者: knives () 看板: EzHotKey
: 標題: [請問] 請問這個批次檔該怎麼寫
: 時間: Sun May 10 04:00:14 2009
: 因為uTorrent預設一但非正常關閉程式,之後重開程式,就會再重新檢查檔案
: 比方說,在關機之前,若沒有先手動關閉程式的話,就會有上述的Bug
: 想說有沒有辦法寫個批次檔,自動幫我做關閉uTorrent的動作,放在關機時啟動
: 請問該怎麼寫
taskkill
它在普通呼叫時會試著送關閉訊號給程式
就像是手動點 X 一樣
用法是 taskkill /im 執行檔檔名
/im 表示後面的是檔名
像你要的就是 taskkill /im utorrent.exe
這樣就行了
至於關機時啟動...我就不太清楚 Windows 有沒有設計這種地方了
再說關機時 Windows 也是一樣的送關閉訊號給每支程式啊...
--
'You've sort of made up for it tonight,' said Harry. 'Getting the
sword. Finishing the Horcrux. Saving my life.'
'That makes me sound a lot cooler then I was,' Ron mumbled.
'Stuff like that always sounds cooler then it really was,' said
Harry. 'I've been trying to tell you that for years.'
-- Harry Potter and the Deathly Hollows, P.308
--
Tags:
Windows
All Comments

By Ursula
at 2009-05-13T08:42
at 2009-05-13T08:42

By Caroline
at 2009-05-18T03:41
at 2009-05-18T03:41

By Blanche
at 2009-05-19T13:58
at 2009-05-19T13:58

By Noah
at 2009-05-20T22:52
at 2009-05-20T22:52

By Ivy
at 2009-05-22T03:51
at 2009-05-22T03:51

By Jake
at 2009-05-23T11:14
at 2009-05-23T11:14

By Skylar DavisLinda
at 2009-05-25T15:54
at 2009-05-25T15:54
Related Posts
開兩個帳戶,灌兩組程式?

By Iris
at 2009-05-10T02:41
at 2009-05-10T02:41
麻煩的IE6

By Belly
at 2009-05-10T01:56
at 2009-05-10T01:56
只有一個帳號而且是Administrator但沒有權限?

By Eden
at 2009-05-10T01:16
at 2009-05-10T01:16
vista 離線工作

By Belly
at 2009-05-10T00:57
at 2009-05-10T00:57
TekrAm DC-395 SCSI卡的Vista驅動程式

By Andrew
at 2009-05-09T23:34
at 2009-05-09T23:34