문서의 이전 판입니다!
$PROFILE
환경변수값$Home\[My ]Documents\WindowsPowerShell\Profile.ps1
$Home\[My ]Documents\WindowsPowerShell\Profile.ps1
에 다음 추가하면 l
, ls
로 명령실행가능. 기존 명령은 dir
로 가능# for colored ls Import-Module Get-ChildItemColor Set-Alias l Get-ChildItemColor -option AllScope Set-Alias ls Get-ChildItemColorFormatWide -option AllScope
powershell start-process '원하는명령(혹은 .bat)' -WindowStyle Hidden
ps *foo* get-process | findstr foo get-process | where ProcessName -like "*foo*"
#값 읽기 $Env:<variable-name> $Env:PATH # 값 지정 $Env:<variable-name> = "<new-value>" $Env:path = $env:path + ";c:\temp" Set-Item -Path Env:Path -Value ($Env:Path + ";C:\Temp")