How to manage environment variables?
"Start > My Computer > Properties >Advanced > Environment Variables"
- Go to Windows Start menu
- Right-click My Computer, and then click Properties.
- Select Advanced settings or tab
- Click Environment Variables
For example, suppose we have installed a PHP software package on our computer and want to run this under DOS windows.
"Start > My Computer > Properties >Advanced > Environment Variables"
Under the second list (System variables), there will be a variable called "PATH" (otherwise, click New, type and value of variable name variable = PATH = C: \ PHP;).
Select it and click "Edit". Add the ";C: \ PHP" to the end of the string and click "OK".
This is needed to exexute PHP commands from any other drive in your computer.
You should reboot your computer or use the below method: without rebooting windows!
How to add an environment variable without rebooting Windows?
Create a new directory: C:\rebootEnvars\
Create a new file "resetvars.vbs" with the following codes and save to C:\rebootEnvars\:
Create an another file "resetvars.bat" and save to "C:\rebootEnvars\":
Open DOS windows and run:
C:\cd rebootEnvars
C:\rebootEnvars>resetvars.bat


