Как добавить путь переменной Environ в командную строку VS

998
whytheq

Если я открою Developer Command Prompt for VS2012с помощью «Запуск от имени администратора», а затем выполню следующее, будет ли C:\fooдобавлен путь к списку путей переменных среды для командной строки? (или все существующие пути будут заменены C:\foo?)

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

0

1 ответ на вопрос

1
Anand

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.