Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I open Developer Command Prompt for VS2012 using 'Run as Administrator' and then run the following will the path C:\foo get added to the list of environment variable pathways for the command prompt? (or will all the existing pathways get replaced by C:\foo?)

setx path "%path%;C:\foo"

share|improve this question

migrated from Oct 4 '12 at 19:46

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

run this command path "%path%;C:\foo"

documented help for path PATH /? Displays or sets a search path for executable files. PATH [[drive:]path[;...][;%PATH%] PATH ;

Type PATH ; to clear all search-path settings and direct cmd.exe to search only in the current directory. Type PATH without parameters to display the current path.

Including %PATH% in the new path setting causes the old path to be appended to the new setting.

share|improve this answer

Your Answer


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.