1
1

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 5 years have passed since last update.

How to update process-locked files Windows

Posted at

Why?

  • Service prcess locked dll file.
  • Other user's process locked ...

How?

Rename Current file

  1. Rename (e.g hoge.dll => hoge.dll.old
  2. Copy new file as same filename. (e.g /tmp/hoge.dll => /system32/hoge.dll

Use registry

helper = inuse.exe

まず,レジストリ・エディタ(regedt32.exe)を起動し,HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
\Control\Session Managerキーの配下にPendingFileRenameOperationsという値を追加します。データ型はREG_MULTI_SZで,そのデータとして上段に置き換える新しいファイル名,下段に置き換えられる古いファイル名を入力します。

 例えば,c:\winnt\system32\test.sysのファイルをc:\temp\test.sysで上書きする場合は図3のように設定します。設定を変更したら,レジストリ・エディタを終了し,コンピュータを再起動すればファイルが置き換えられた状態となっているはずです。詳細は,マイクロソフト技術情報(JP181345)を参照してください。
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?