Adding a directory to the PATH environment variable in Windows

前端 未结 18 1379
我在风中等你
我在风中等你 2020-11-21 05:13

I am trying to add C:\\xampp\\php to my system PATH environment variable in Windows.

I have already added it using the Environment Varia

18条回答
  •  时光说笑
    2020-11-21 06:18

    • Command line changes will not be permanent and will be lost when the console closes.
    • The path works like first comes first served.
    • You may want to override other already included executables. For instance, if you already have another version on your path and you want to add different version without making a permanent change on path, you should put the directory at the beginning of the command.

    To override already included executables;

    set PATH=C:\xampp\php;%PATH%;

提交回复
热议问题