I am trying to add C:\xampp\php
to my system PATH
environment variable in Windows. (我试图将C:\xampp\php
添加到Windows中的系统PATH
环境变量中。)
I have already added it using the Environment Variables dialog box. (我已经使用“环境变量”对话框添加了它。)
But when I type into my console: (但是当我输入控制台时:)
C:>path
it doesn't show the new C:\xampp\php
directory: (它不显示新的C:\xampp\php
目录:)
PATH=D:Program FilesAutodeskMaya2008in;C:Ruby192in;C:WINDOWSsystem32;C:WINDOWS;
C:WINDOWSSystem32Wbem;C:PROGRA~1DISKEE~2DISKEE~1;c:Program FilesMicrosoft SQL
Server90Toolsinn;C:Program FilesQuickTimeQTSystem;D:Program FilesTortoiseSVNin
;D:Program FilesBazaar;C:Program FilesAndroidandroid-sdkools;D:Program Files
Microsoft Visual StudioCommonToolsWinNT;D:Program FilesMicrosoft Visual StudioCommon
MSDev98Bin;D:Program FilesMicrosoft Visual StudioCommonTools;D:Program Files
Microsoft Visual StudioVC98in
I have two questions: (我有两个问题:)
- Why did this happen? (为什么会这样呢?) Is there something I did wrong? (我做错了什么吗?)
- Also, how do I add directories to my
PATH
variable using the console (and programmatically, with a batch file)? (另外,如何使用控制台(以编程方式,使用批处理文件)将目录添加到PATH
变量中?)
ask by Mp de la Vega translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…