批处理Set
命令用于显示当前系统上的环境变量列表。
语法
set
示例
@echo off
set
以上命令显示当前系统上的环境变量列表。如下所示 -
Path=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\yiibai.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;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PYW;.RB;.RBW
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\PowerShell\Modules\
PUBLIC=C:\Users\Public
RUBYOPT=-Eutf-8
SBT_HOME=D:\Program Files (x86)\sbt\
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\ADMINI~1\AppData\Local\Temp
TMP=C:\Users\ADMINI~1\AppData\Local\Temp
USERDOMAIN=MY-PC
USERDOMAIN_ROAMINGPROFILE=MY-PC
USERNAME=Administrator
USERPROFILE=C:\Users\Administrator
VS140COMNTOOLS=D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
windir=C:\WINDOWS
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log