One solution could be to parse the output into an array of strings or a similar
structure, and then foreach through this array, printing every element to a log
line.
Don't know offhand how to do it in JScript, but the following works more or less
in VBS:

const module_name  = "TestLog1"
const module_ver   = "1.0" 
const menu_item1   = "TestLog1"

Sub Init
  addMenuItem menu_item1, module_name, "TestLog1"
End Sub


Sub TestLog1
  Set WshShell = CreateObject("WScript.Shell")
  Set oExec = WshShell.Exec("ipconfig /all")
  Do While (oExec.Status = 0)
    Sleep 100
  Loop
  strOutput = oExec.StdOut.ReadAll
  ' MsgBox strOutput
  logClear
  arLogText = split(strOutput,vbCrLf,-1) ' Get selected text, parse into array
  For i = 0 To UBound(arLogText,1)
    logAddLine(arLogText(i))
  Next
End Sub

-- 
<http://forum.pspad.com/read.php?2,43857,43858>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem