Works for Windows 10 or 7
Add/Edit PATH Environment Variable in Windows 10
If you're a programmer, you probably spend a fair amount of time using the command prompt to run programs or compile code. To perform these tasks, you'll likely need to use a command from a library or software package installed on your system (such as Python).
By default, most of these programs add their own custom shortcuts to the Windows environment variables. The most commonly used environment variable in Windows is probably the PATH variable. It essentially allows you to run any executable file located within the paths specified in the variable at the command prompt, without having to specify the full path to the executable file.
In this article, I'll show you how to add more paths to the Windows PATH variable, in case you want to run executables from your own custom directories. It's worth noting that the procedure below is for Windows 10, but it's almost exactly the same for Windows 7.