cmd set environment variable

Basically, I don't use windows very much. Sometimes once I use it, I forget the environment variables set in it.


1. Setting the system can be set directly with cmd

set ERLANG_HOME=C:\Program Files\erl9.3 # 下次就可以直接cd %ERLANG_HOME% 进入这样就设置好了,如下图


Only temporary environment variables can be set with cmd, and manual configuration is required to set permanent ones.

set path=%path%;%ERLANG_HOME% # %path% means appending. If you don't write it, it will cover everything.




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325570672&siteId=291194637