Forum Discussion
jose_pita
12 years agoSuper Contributor
I still haven't figured out how to execute the command in TC (maybe alexey can help you with that), but here it how I do it:
var proc = Sys.FindChild("ProcessName", "cmd"); // Obtains the process by its name
Log.Message(aqString.SubString(proc.child(0).wText,122,80))//adjut the indexes acording to your need
add the bat file with the command to TC testedApps
run the bat file from within TC
use this to capture the text:
var proc = Sys.FindChild("ProcessName", "cmd"); // Obtains the process by its name
Log.Message(aqString.SubString(proc.child(0).wText,122,80))//adjut the indexes acording to your need