Thursday, January 22, 2015

command line - Windows Environment Variables

I am very confused on what is incorrect with my Windows Path variable.


In my System Settings I have the System Variable Path set to:


C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\WindowsPowerShell\v1.0\;C:\apache-tomcat-6.0.41-windows-x64\apache-tomcat-6.0.41\bin;C:\ProgramFiles\TortoiseHg;

Yet, when I try to run hg.exe (in C:\Program Files\TortoiseHg) from the command line in another directory it returns "hg is not recognized as an internal or external command, operable program or batch file".


I thought that if I set my Path to include the executable directory, then I could run hg commands from any directory. Why is this not working? How can I make my Path variable set to something global? Maybe I don't understand the difference between a User Environment variable and a System environment variable?


**Note that if I echo %path% from my command line I get something slightly different than what shows in System Variables:


C:\Users\stankard>echo %path%
C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\Wind
owsPowerShell\v1.0\;C:\windows\System32\WindowsPowerShell\v1.0\;%ANT_HOME%\bin;
C:\apache-tomcat-6.0.41-windows-x64\apache-tomcat-6.0.41\bin;C:\ProgramFiles\Tor
toiseHg;C:\ProgramFiles\TortoiseHg\

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...