Tuesday, July 8, 2014

RE: Clean string returned by windows console cmd

Ni Va wrote:
> This is obtained by launching this command :
> echo system("wmic logicaldisk get deviceid")

The problem is that the output from wmic is Unicode, and system
is dumping the bytes. I don't know how to avoid that, but the
following reads the plain text if you have the correct settings:

:r !wmic logicaldisk get deviceid

John


--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: