In this blog, we will see how to add or edit Environment Variables on Windows,
Environment variables are used to store system-wide values, like, PATH - the most common environment variable, which contains a list of directories to search for executable programs (EXE).
Let's see how to add an environment variable to your system,
Right-click on the This PC icon and choose Properties, or simply open File Explorer and Right-Click on This PC and select Properties,
You can also go to the Control Panel and click on the System, then choose Advanced system settings,
Click on the Environment Variables,
Click on New to add a new environment variable or click on Edit to edit an existing environment variable, I am going to edit the most common Path variable,
You need to copy your bin folder path of whatever the program just copied in the binary folder path and paste it there,
I am going to add a path for Mongo Shell, you can copy the path and paste it.
After adding or editing the environment variable, click on OK to have the change take effect.
Hope this will help you.
Thanks.