Changing the path in Command Prompt, also known as setting the PATH environment variable, allows you to specify the directories that the Command Prompt will search for executable files when you enter a command.This can be useful if you have installed a program in a non-standard location, or if you want to be able to access a program from any directory.
To change the path in Command Prompt, you can use the setx command.The syntax of the setx command is as follows: