Click Start menu, run = "cmd"
Print current variable: echo%PATH%
Results:
C:\WINDOWS\system32; C:\WINDOWS; C:\windows\system32\wbem;d:\progra~1\ssh;d:\program Files\tortoisesvn\bin;d:\program Files\baofengyingyin\Codec ;D: \program Files\baofengyingyin
To set a variable:
Set Path=c:\program files\easyphp5.3.0\php;%path%
Print again: Echo%PATH%
The results show that new variables are added:
C:\Program files\easyphp5.3.0\php; C:\WINDOWS\system32; C:\WINDOWS; C:\windows\system32\wbem;d:\progra~1\ssh;d:\program Files\tortoisesvn\bin;d:\program Files\baofengyingyin\Codec ;D: \program Files\baofengyingyin
The above is a temporary setting, if it is to be permanently valid, use this procedure:
Right-click My Computer = "Properties =" Advanced = "Environment variable =" System variable = "path=" Modify add new path and restart the computer.
Print and set the path variable in Windows command-line mode