Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I recently learned about the Registry in Windows, more specifically about the directory;
Computer\HKEY_CLASSES_ROOT\Directory\shell

There you can make a key called eg. Test and another key called command and there you can make a new String Value linked to some .bat File and it will execute when you click on a Folder and select Test.

Source: pureinfotech.

But I have a question. This will happen if you click on a Folder, eg.
Click on Folder:
Click On Folder

My Question: Is there some HKEY Path that will execute when you are in the folder, and click in any free Space, e.g.
Click in Folder:
Click in Folder

Regards, Tanmay

What I have tried:

I've browsed many HKEY Paths, looked up in the internet, but could not find anything.
Posted
Updated 6-Apr-21 3:49am
v2
Comments
Richard Deeming 6-Apr-21 9:50am    
I have removed the hidden link to the "pureinfotech" site, which makes your question look like spam.

If you just scroll down from Computer\HKEY_CLASSES_ROOT\Directory you will find the Folder key.

However, be warned, that editing registry keys carries risk. If you make mistakes you can cause serious system problems.
 
Share this answer
 
Computer\HKEY_CLASSES_ROOT\Directory\Background\shell

That's the registry key for your purposes of your custom context menu showing while right clicking on the folder's white background space.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900