windows查看path,命令行设置path

2023-05-05 18:59:23 浏览数 (1)

以安装Gradle示例说明windows环境下设置环境变量path的方法:

代码语言:javascript复制
C:UsersBYRON.Y.Y>path
PATH=C:Program Files (x86)Common FilesOracleJavajavapath;C:ProgramDataOracleJavajavapath;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program FilesJavajdk1.8.0_144bin;F:apache-maven-3.2.5bin;C:Program FilesGitcmd;C:Program FilesTortoiseGitbin;C:Program FilesMySQLMySQL Server 5.7bin;C:Program FilesTortoiseSVNbin;C:WINDOWSSystem32OpenSSH;%CURL_HOME%;%CONSULE_HOME%;E:111softwaresconsul_1.0.7_windows_386;C:Program Files (x86)sbtbin;F:instrollpython3Scripts;F:instrollpython3;C:UsersBYRON.Y.YAppDataLocalMicrosoftWindowsApps;;C:Program FilesMicrosoft VS Codebin

C:UsersBYRON.Y.Y>set path=%path%;E:111softwaresgradle-4.10.2-bingradle-4.10.2bin

C:UsersBYRON.Y.Y>path
PATH=C:Program Files (x86)Common FilesOracleJavajavapath;C:ProgramDataOracleJavajavapath;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program FilesJavajdk1.8.0_144bin;F:apache-maven-3.2.5bin;C:Program FilesGitcmd;C:Program FilesTortoiseGitbin;C:Program FilesMySQLMySQL Server 5.7bin;C:Program FilesTortoiseSVNbin;C:WINDOWSSystem32OpenSSH;%CURL_HOME%;%CONSULE_HOME%;E:111softwaresconsul_1.0.7_windows_386;C:Program Files (x86)sbtbin;F:instrollpython3Scripts;F:instrollpython3;C:UsersBYRON.Y.YAppDataLocalMicrosoftWindowsApps;;C:Program FilesMicrosoft VS Codebin;E:111softwaresgradle-4.10.2-bingradle-4.10.2bin

C:UsersBYRON.Y.Y>
C:UsersBYRON.Y.Y>
C:UsersBYRON.Y.Y>
C:UsersBYRON.Y.Y>gradle -v

------------------------------------------------------------
Gradle 4.10.2
------------------------------------------------------------

Build time:   2018-09-19 18:10:15 UTC
Revision:     b4d8d5d170bb4ba516e88d7fe5647e2323d791dd

Kotlin DSL:   1.0-rc-6
Kotlin:       1.2.61
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.8.0_144 (Oracle Corporation 25.144-b01)
OS:           Windows 10 10.0 amd64

C:UsersBYRON.Y.Y>

0 人点赞