Setting up an environment variable in Windows 10

Environment variables are variables that describe the environment in which apps and programs run. In Windows, environment variables have a name and value. For example, the variable windir (short for “Windows directory”) may have the value “C:\Windows” or another path where you installed Windows.

Setting up PATH. Many programs need to know where to find specific files, and the PATH variable tells them where they can find what they need. Those programs automatically look for a PATH variable, so you don’t have to type it all in every time you run the program. This variable has a value consisting of many user directories. These directories are set by the different applications installed on the computer, and they vary widely from system to system.

The concept of environment variables exists in most operating systems, from Linux to macOS to Windows. In principle, they mean the same thing but the way they are implemented and used differs.

1)
Note: In variable value when you locate the path for your file, make sure the path names do not contain any spaces and if it has then enclosed the whole path in Quotation mark.