- 追加された行はこの色です。
- 削除された行はこの色です。
* openfiles - オープンされてるファイルの操作 [#d2667b4e]
** 準備 - システム グローバル フラグ 'maintain objects list' を有効にする。 [#p4e6768e]
openfiles /local on
この後、PCを再起動する。一度フラグを有効にすれば再度行う必要はない。
** オープンしているファイルの一覧 [#e23925a2]
openfiles
** オープンしているファイルを閉じる [#sb08c387]
*** IDを調べる [#h86712a5]
openfiles.exe | Select-String 1.txt
=> 3704 explorer.exe C:\Users\taro\Documents\tmp\1.txt
3704 explorer.exe C:\Users\france\Documents\tmp\1.txt
*** ファイルを閉じる [#rcbb25bd]
*** IDを指定してファイルを閉じる [#rcbb25bd]
openfiles.exe /disconnect /id 3704