Windows Restart Manager doesn't see folders opened by the command prompt as in use
Asked Answered
I

0

8

When using the Restart Manager, if I add a path to RmRegisterResources that is currently opened as the current working directory in a command prompt window, RmGetList doesn't return it, but instead returns info about other locked files (e.g., an executable loaded in WinDBG).

Why is that so?

If I try to delete this folder, I get an error 32: ERROR_SHARING_VIOLATION, which is why I used the Restart Manager to identify the processes that are preventing me from deleting files and folders.

Ionian answered 7/2, 2014 at 1:28 Comment(2)
Are you sure that RmRegisterResources() supports folder paths to begin with? Everything I have read about it only mentions files, not folders.Real
Ha! Good point... I didn't think about that... Thanks!Ionian

© 2022 - 2024 — McMap. All rights reserved.