WIndow:命令行获取环境变量

命令行获取环境变量

echo %环境变量名称%
C:\Users>echo %MAVEN_HOME%
C:\Users\13020\maven\apache-maven-3.6.3-bin\apache-maven-3.6.3

C:\Users>echo %PATH%
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Java\jdk1.8.0_301\bin;C:\Program Files\Git\cmd;C:\Users\13020\maven\apache-maven-3.6.3-bin\apache-maven-3.6.3\bin;C:\Users\13020\AppData\Local\Microsoft\WindowsApps;;C:\Program Files\JetBrains\IntelliJ IDEA 2022.1.4\bin;;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.3.3\bin;

你可能感兴趣的:(window,获取环境变量,终端)