0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

エラー: プロセス "hogehoge" (PID xxxxx) を強制終了できませんでした。理由: このコマンドを実行するための十分なクォータがありません。と出たとき

Last updated at Posted at 2020-07-17

方法

taskkill /IM hogehoge

と入力して、

エラー: プロセス "hogehoge" (PID xxxxx) を強制終了できませんでした。
理由: このコマンドを実行するための十分なクォータがありません。

と出たときは、

taskkill /IM hogehoge /T /F

と、オプションを加えると、うまくいくことがある。
意味は、
/T 子プロセスもろとも殺す。
/F 強制的に殺す
である。

調べたきっかけ

QuiteRSSのタスクトレイのアイコンがいつの間にか消えていて、しかしプロセスが生き残ってるという状況から自動的に再起動するためのbatを開発したのだが、うまくいっていなかった。
しかし今回の方法を試したらうまくいった。子プロセスが干渉していたようだ。

参考

windows — Taskkill / fはプロセスを強制終了しません

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?