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.

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 stackoverflow.com Oct 4 '12 at 19:46

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

1 Answer 1

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

 
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.