ur0n2 / dotfiles-for-windows

dotfiles for windows
MIT License
6 stars 0 forks source link

환경 변수 등록 후 환경변수 전파 #1

Open ur0n2 opened 7 years ago

ur0n2 commented 7 years ago

재시작이나 직접 window message를 propagation 해야함. explorer.exe는 하위 프로세스까지 종료하고 재시작 해야 함.

refer: http://blog.naver.com/PostView.nhn?blogId=hieshyun&logNo=90087697275 https://support.microsoft.com/ko-kr/help/104011/how-to-propagate-environment-variables-to-the-system http://serverfault.com/questions/8855/how-do-you-add-a-windows-environment-variable-without-rebooting

ur0n2 commented 7 years ago

WM_SETTINGCHANGE broadcast with powershell http://poshcode.org/2049

ur0n2 commented 7 years ago

환경변수 등록하면 ; C:\Linked 사이에 띄어쓰기 있음 -> 배열이라서.. $curr_path_var.Trim()에서 .Trim()메소드 없으니 삭제