Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

StdoutToVar


  • Please log in to reply
121 replies to this topic
Guest10
  • Members
  • 1216 posts
  • Last active: Oct 30 2015 05:12 PM
  • Joined: 27 Oct 2012

Thanks, garry! Worked beauuutifully: objExec := objShell.Exec("tasklist /s " A_ComputerName)

;-- http://www.autohotkey.com/board/topic/89581-exiftoolexe-comspec-output/
objShell := ComObjCreate("WScript.Shell")
objExec := objShell.Exec("tasklist /s " A_ComputerName)
strStdOut := ""
while, !objExec.StdOut.AtEndOfStream
    strStdOut := objExec.StdOut.ReadAll()
MsgBox %strStdOut%


Guest10
  • Members
  • 1216 posts
  • Last active: Oct 30 2015 05:12 PM
  • Joined: 27 Oct 2012

How can I make this option work? Note /FO CSV. As such it returns blank!

I also tried TASKLIST /S system /FO CSV

 

objExec := objShell.Exec("tasklist /S /FO CSV " A_ComputerName)