Capture streaming cli output?

Get help with using AutoHotkey and its commands and hotkeys
Posts: 34
Joined: 11 Aug 2016, 11:31

Capture streaming cli output?

07 Jan 2017, 12:46


is it possible to read in the output line after line that a cli program creates (e.g. in a command prompt)?

In this particular case I'd like to capture the output of rsync.exe (but not when it's finished but with
every new line that it spits out) and display it in e.g. an edit field in a gui...

I should run under x86 + x64 and it needs to support unicode output.

Does something like this already exists?
Posts: 69
Joined: 16 Jan 2016, 00:33

Re: Capture streaming cli output?

07 Jan 2017, 14:42 ... douttovar/

here are 2 version
StdOutToVar that return only once after end and of execute command
StdOutStream - watch in live any messages (eg. ping -t)

Re: Capture streaming cli output?

08 Jan 2017, 04:19

Have you tried the example(s) on the Run page - RunWaitOne - ? You can find more examples if you search the forum. (search for WScript.Shell)

Return to “Ask For Help”

Who is online

Users browsing this forum: adrian88888888, Google [Bot], kranisko, LeonAskin, mikeyww, patrickmy0, TAC109 and 51 guests