Archive: catch realtime output from dos console


catch realtime output from dos console
Is that possible somehow?

so NOT the result after action - the result meanwhile action...


ExecDos might be able to do that. nsExec currently doesn't support it.


sorry - not with execdos - it only offers a logfile after action.
my app creates a logfile during action but i was asked for
a bar like in "inetc" or "Nzipdll".
duration is depending on amount of files and the bar should
be relativ to this. app is writing one line for each file.


I was after this same thing once upon a time but I couldn't find a solution. Even for Half-Life 1 command-line map compilers Valve could only read output in WorldCraft/Hammer on a line by line basis.

Stu


ExecDos with /NOUNLOAD /ASYNC /TOSTACK options puts every output line to NSIS stack instead of log file and does this during application execution. Create loop and update progress bar basing on Pop result. The only problem you should solve for yourself is to find execution end. For progress bar you can use nxs (which I know is stable) or any other plug-in.
And I am not sure how safe is mutual access to NSIS stack...


i'll give it a try - thx
i hope that nsis wont grab much cpu power while looping...


It will unless you add a 'Sleep' statement! - Section 4.9.7.7


i know that cause i have other programs running some calculations and they freeze my computer a little bit during that.