Friday, January 17, 2020

automatization with powershell Start-Process

Hallo!
 My task is, to convert many files encoding in latin1 to UTF-8

I know the sequence which works:

open a file
set set fileencoding=utf-8
set bomb
wrtite to another file

but there are problems with the argument list
this fails:
Start-Process -FilePath 'C:/Program Files (x86)/Vim/vim82/vim.exe' -wait -ArgumentList ('"S:\testConcToUTF2\b Ansi copied.txt"', '-c set fileencoding=utf-8')


please give me an advice
Erhy

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/296f99c8-f209-483d-8f1b-21604e5a1302%40googlegroups.com.

No comments: