【发布时间】:2013-06-26 16:13:39
【问题描述】:
当我尝试回显系统路径变量时,它会显示两次相同的内容。
我的系统路径变量:
C:\oracle\app\oracle\product\10.2.0\server\bin;C:\Program Files (x86)\PC 连接解决方案\;C:\Program Files\Common 文件\MicrosoftShared\Windows Live;C:\Program 文件 (x86)\CommonFiles\MicrosoftShared\WindowsLive;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Dell\DW WLAN 卡;C:\Program Files\WIDCOMM\Bluetooth 软件\;C:\Program Files\WIDCOMM\Bluetooth 软件\syswow64;C:\Program Files (x86)\Windows Live\Shared;
当我在 cmd 上回显它时 echo %Path% 它显示这个
C:\oracle\app\oracle\product\10.2.0\server\bin;C:\Program Files (x86)\PC 连接解决方案\;C:\Program Files\Common 文件\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common 文件\微软 Shared\WindowsLive;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Dell\DW WLAN 卡;C:\ProgramFiles\WIDCOMM\Bluetooth 软件\;C:\Program Files\WIDCOMM\Bluetooth 软件\syswow64;C:\程序 文件(x86)\WindowsLive\Shared;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Program 文件 (x86)\PC ConnectivitySolution\;C:\Program Files\Common 文件\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common 文件\Microsoft 共享\Windows 直播;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\System32\WindowsPowerShell\v1.0\;C:\Program Files\Dell\DW WLAN 卡;C:\Program Files\WIDCOMM\Bluetooth 软件\;C:\Program Files\WIDCOMM\Bluetooth 软件\syswow64;C:\Program 文件 (x86)\WindowsLive\Shared;F:\Java\jdk1.6.0_38\bin\
谁能帮助它为什么显示两次相同的值?这样做有副作用吗?
P.S:我创建了一个本地 Path 变量作为 %Path%F:\Java\jdk1.6.0_38\bin\
【问题讨论】:
-
可能是您复制了两次路径数据,您究竟是如何创建 %Path% 变量的?
-
其路径 = %Path%;F:\Java\jdk1.6.0_38\bin\
标签: windows-7 environment-variables