티스토리 뷰

일단 out-file을 이용해서 bat 파일을 만들어낼 경우 ascii 가 아닌 unicode로 인풋이 들어가므로 실행이안된다. 


이 때 out-file 옵션이다. 


Out-File -FilePath aa.bat -InputObject $input -Encoding ascii -Width 50 

'Programming > Powershell' 카테고리의 다른 글

powershell Test-Path  (0) 2017.06.01
Powershell temp path  (0) 2017.05.17
powershell Script 변수 명령어 실행  (0) 2017.03.22
powershell Script 반복문  (0) 2017.03.20
powershell Script if문  (0) 2017.03.20
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함