반응형
> Get-Content [기존파일] | Set-Content -Encoding [변경할 언어셋] [신규파일] ex) Get-Content C:\test.cfg | Set-Content -Encoding utf-8 C:\new.cfg |
cf. 커맨드(cmd)창에서 실행하기
- 파워쉘에서는 일반 커맨드창의 bat 파일을 실행할 수 없음.
ps1 파일로 저장해준 다음 command 에서 아래의 명령어로 실행
> Powershell.exe -noprofile -executionpolicy bypass -file "[파워셸파일].ps1" |
반응형
'개발 > Window' 카테고리의 다른 글
powershell에서 원격데스크탑 방화벽 활성화 (0) | 2020.07.28 |
---|---|
powershell 명령어 자동응답 (0) | 2020.06.17 |
powershell 에서 파일 내용 치환하기 (0) | 2020.06.04 |
powershell 에서 cmd 명령어 이용하기 (0) | 2020.06.01 |
윈도우 원격포트 변경 스크립트 (0) | 2020.02.18 |