Since everything I see is “explorer.exe”, I labelled different parts of it in the screenshots at the bottom, to make it easy to understand.
- Can I make my own application open directories by default when I click a directory in “1” or “2”?
- With the change for the question above, can I still make double-clicking a directory in a manually-opened “3” open in the same “3”, not with my application?
There are some incontinences for me in “3”. So I am trying to write a (simple) my own file listing application in C#. Now, what I want is that when I double click a directory on the desktop or clicking things like “Downloads” or “Personal Folder” (in “1” or “2”), my own application gets invoked (with the directory path as an argument), not “3”.
I have searched the web and found a way to “replace the shell”
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogonShell, but that completely replaced everything and the Start Menu/Taskbar were gone. Not that I do not have complaints about the Start Menu/Taskbar, but recreating Start Menu/Taskbar would be daunting, so I only want to replace “3” (or, if possible, “1” also.)
I thought that I could change the “Open” command that I see when I right-click a directory, but replacing the value of
explorer.exe to another exe did not work. How can I do this?
But after making my application to open directories by default, if I manually open directories in “3” (because I cannot reproduce every feature of “3” and sometimes need to use it), when I double-click a directory in “3”, is it possible to make it open in the same “3”, not with my application?