Friday, January 17, 2020

Re: automatization with powershell Start-Process



On Friday, January 17, 2020 at 4:01:09 PM UTC-6, Erhy wrote:
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')


I think the only think you need to change is the last part:

'-c set fileenconding=utf-8' should be changed to

'-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/4bf96bae-3892-45ac-af52-d0a4ee0706e0%40googlegroups.com.

No comments:

Post a Comment