Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

powershell 은 SET 으로 환경 변수를 설정하지 않고 $env: 밑에 설정할 변수명을 바로 지정.


아래는 PHP 를 PATH 의 맨 앞에 추가.

Code Block
languagepowershell
$env:Path="C:\devel\php\php-7.3.14-nts-Win32-VC15-x64\;" + $env:Path


맨 뒤에 추가할 경우 += 연산자로 string concatenation 처리

Code Block
languagepowershell
$env:Path += ";C:\devel\php\php-7.3.14-nts-Win32-VC15-x64"