So fügen Sie der VS-Eingabeaufforderung einen Umgebungsvariablenpfad hinzu

1222
whytheq

Wenn ich Developer Command Prompt for VS2012mit 'Als Administrator ausführen' öffne und dann Folgendes ausführen, wird der Pfad C:\fooder Liste der Umgebungsvariablenpfade für die Eingabeaufforderung hinzugefügt? (oder werden alle vorhandenen Pfade durch ersetzt C:\foo?)

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

0

1 Antwort auf die Frage

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.