System hacks: Calling the environment variables option from the desktop right-click menu

Environment variables play a very important role in Windows systems. Developers often use environment variables, and even if you are not a developer, you should know about them because they contain some specific common information about the system, such as the currently logged on user, operating system type, processor type, etc. Since you have to go through the “System Properties” window to call environment variables in Windows environment, it is not convenient enough (Figure 1), so it would be much easier to call them if you can add them to the desktop right-click menu.



1. add environment variable option to desktop context menu

Using the registry editing method, we can add the option to invoke environment variables to the desktop context menu. To add this item in the registry, we mainly use the registry branch “HKEY_CLASSES_ROOTDesktopBackgroundShellEnvVars”. Since adding a registry item involves several steps and is relatively tedious, the modification steps are directly written here as a REG file (download link: Extraction code: ep42), the contents of which are shown in the figure (Figure 2). Use this file for automatic addition.


After downloading the above REG file, run it under the administrator account. At this point, the system gives a prompt for the Registry Editor user account control, click “Yes” to pass. Next, you will receive a prompt to add the Registry Editor, click “Yes” to confirm. Finally, you will be prompted to add successfully.

After that, go to the desktop and right-click on the blank space to see the new option to add environment variables (Figure 3). There are two sub-options to add User variables and System variables. Click on these two options to enter the corresponding environment variable editing window. 2.


2. Remove the environment variables option from the context menu

If you want to remove the desktop environment variables right-click menu item, just open the registry editor, locate “HKEY_CLASSES_ROOTDesktopBackgroundShellEnvVars” and delete the EnvVars branch (Figure 4).


Alternatively, you can directly download the special REG file for removal (download link: Extraction code: 87na) and run it to automatically remove this menu item.

Leave a Comment