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.

I installed Cygwin and uninstalled it after some time on a Windows 7 machine. But, the PATH variable directories naming is not correct now. Could some one tell me how do I correct this? Log below - notice the path starts with /cygdrive/ instead of C:/.

PATH=/cygdrive/c/windows:/cygdrive/c/windows/system32:/cygdrive/c/windows/system32/wbem:/cygdrive/c/program files/common files/microsoft shared/microsoft online services:
share|improve this question

1 Answer 1

Press Windows+R and type %windir%\System32\SystemPropertiesAdvanced.exe

Click the Environment Variables button

Then under System Variables choose PATH and press Edit.

You can then edit all instances of /cygdrive/c/ with C:\

share|improve this answer
    
I tried, it is okay in system variables settings, but the issue is that when I type ENV in DOS prompt, the PATH has /cygdrive/ pprefix for all paths. –  user270066 Nov 7 '13 at 0:25
2  
@user270066 if you had the CMD window open before you made the changes, the System Variable changes won't propagate to that console. Open a new CMD window, and the path should be correct there . . . –  ernie Nov 7 '13 at 0:38

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.