Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Why does PowerShell on conEmu have a different PATH from cmd?

I see this when I do openssl version in PowerShell I see that 2007 version and in cmd I see the 2013 version....

This is my startup commandline in conemu

powershell -cur_console:d:h:

How do I make it so powershell on conemu will have the same path as cmd?

share|improve this question
    
Again. What is the difference in your PATH variables in ConEmu box and standard windows box? What prints $env:PATH in both terminals? –  Maximus Feb 28 '13 at 21:38
1  
BTW, "-cur_console:d:h:" is not fully correct. "h:" means change drive, not path... May be not determined in some cases... Use "-cur_console:d:h:\" to guaranteed change working path to "h:\". –  Maximus Feb 28 '13 at 21:43

1 Answer 1

@Maximus, thanks for the help. Seems that a restart makes powershell grab the path or something.

Now its all sorted :)

share|improve this answer
    
This should be a comment in response to Maximus and not an answer, Maximus should have posted his comment as an answer. Someone else easily can to gain points, including you - include it in your answer above and accept it! –  HaydnWVN Mar 1 '13 at 9:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.