I am using Windows 10 Pro, but I'm sure the process is the same as Windows Vista through 8.1 or it's similar enough for me to figure out the minor differences.
I have two programs with the same exact named .exe file that I want to target in my path variable in system variables.
Example: Program 1's path:
C:\somefolder\anotherfolder\prog.exe Program 2's path:
I can't run both just by putting their filepaths in the
PATH variable because then it will only use the first one listed when I type
prog in the command prompt.
I want to set one of these programs to be opened with a name other than prog. I want to be able to type say
free in order to use the
prog.exe of program 2.
How do I set the environment variables to do that?