Posted to tcl by apn at Wed Sep 17 15:41:07 GMT 2014view raw

  1. set fd [open "| cmd /c echo . | $wmi_cmdline"]
  2. fconfigure $fd -translation binary
  3. set lines [read $fd]
  4. close $fd
  5. return $lines
  6.