批次處理Path
命令顯示或設定路徑變數。
語法
PATH
範例
以下範例顯示了Path
命令的用法。
@echo off
Echo %PATH%
路徑變數的值將顯示在命令提示字元下,如下所示 -
C:\Users\Administrator>PATH
PATH=E:\oracle11g\Administrator\product\11.2.0\dbhome_2\bin;E:\oracle12c\Administrator\product\12.2.0\dbhome_1\bin;D:\Program Files\Python36\Scripts\;D:\Program Files\Python36\;E:\oracle11g\Administrator\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\WINDOWS\SYSTEM32\WINDOWSPOWERSHELL\V1.0\;C:\PROGRAM FILES (X86)\INTEL\SERVICES\IPT\;C:\PROGRAM FILES\BROADCOM\WHL\;C:\PROGRAM FILES\BROADCOM\WHL\SYSWOW64;C:\PROGRAM FILES\BROADCOM\WHL\SYSWOW64\;C:\PROGRAM FILES\BROADCOM\WHL\SYSWOW64\SYSWOW64;D:\PROGRAM FILES\TORTOISESVN\BIN;D:\Program Files\Java\jdk1.8.0_65;D:\Program Files\Java\jdk1.8.0_65\bin;D:\software\apache-maven-3.3.9\bin;D:\Program Files\nodejs;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\wamp\bin\php\php5.6.16;C:\ProgramData\ComposerSetup\bin;C:\Users\Administrator\AppData\Roaming\Composer\vendor\bin;D:\Program Files\erl8.0\bin;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;C:\Python3;D:\Program Files\PuTTY\;D:\Program Files (x86)\sbt\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;D:\Program Files\MATLAB\R2017\bin;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;D:\Program Files\nodejs\;D:\Program Files\Ruby24-x64\bin;D:\wamp\bin\php\php7.0.0\ext;C:\Users\Administrator\AppData\Local\.meteor\;C:\Users\Administrator\AppData\Roaming\Composer\vendor\bin;D:\Program Files\OpenSSL-Win64;D:\worksp\tw511.com\gradle-3.1\bin;D:\software\yiibai\spring-1.4.3.RELEASE\bin;D:\wamp\bin\mysql\mysql5.7.9\bin;D:\software\apache-cassandra-3.10\bin;D:\Program Files\MongoDB\Server\3.4\bin;D:\Program Files\R\R-3.4.1\bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;D:\software\geckodriver;C:\Users\Administrator\AppData\Roaming\npm;