Tag:
PATH is an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are located. In general, each executing process or user session has its own PATH setting.
When a command is entered in a command shell or a system call is made by a program to execute a program, the system first searches the current working directory and then searches the path, examining each directory looking for an executable filename that matches the command name given. Once a matching executable file is found, the system spawns a new process which runs it.
PATH variables are specified as a list of one or more directory names separated by semicolon (;) characters [1].
To check which paths are set:
- open the Command prompt
- type: echo %path%
A list of paths will be output. Use this check after adding a new path to be sure it has been set.
Setting the PATH in Windows 10
- Close the Command prompt if it's open.
- Right on click the Windows start menu icon
- Choose Control panel
- Choose System > Advanced system settings
- In the System Properties dialog box click on the Environment Variables button
- In the Environment Variables dialog box System Variables section scroll down and highlight the Path variable
- Click on the edit button
- In the Edit System Variable dialog box, click inside the Variable value text box to modify the path by specifying the directory where the executable program are located. If you don't have the item PATH, you may select to add a new variable and add PATH as the name and the location of the directory where the executable program is located as the value.
- Click on the "ok" button
- Click on the "ok" button
- Click on the "ok" button
- Reopen Command prompt
- Type: %path%
- Look to see if your path has been set
Setting the PATH in Windows 8 [2]
- Close the Command prompt if it's open.
- Drag the Mouse pointer to the Right bottom corner of the screen
- Click on the Search icon and type: Control Panel
- Click on > Control Panel > System > Advanced
- In the System Properties dialog box click on the Environment Variables button
- In the Edit windows, modify the PATH by adding the location of the directory where the executable program are located. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the directory where the executable program is located as the value.
- Click on the "ok" button
- Click on the "ok" button
- Click on the "ok" button
- Reopen the Command prompt
- Type: %path%
- Look to see if your path has been set
Setting the PATH in Windows 7 [2]
- Close the Command prompt if it's open.
- Select Computer from the Start menu
- Choose System Properties from the context menu
- Click Advanced system settings > Advanced tab
- Click on Environment Variables, under System Variables, find PATH, and click on it.
- In the Edit windows, modify the PATH by adding the location of the directory where the executable program are located. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the directory where the executable program is located as the value.
- Click on the "ok" button
- Click on the "ok" button
- Click on the "ok" button
- Reopen Command prompt window
- Type: %path%
- Look to see if your path has been set
References: