Forum Discussion
AlexeyKolosov
12 years agoStaff
Hello Stephanie,
You can use the second approach from the mentioned article. The code below executes the ipconfig command and posts the contents of the command prompt window to the test log line by line:
var p, w, txt, cnt, i, s;
p = Sys.Process("cmd");
w = p.Window("ConsoleWindowClass", "*");
w.Keys("ipconfig [Enter]");
txt = w.wText;
aqString.ListSeparator = "\r\n";
cnt = aqString.GetListLength(txt);
for (i = 0; i < cnt; i++)
{
s = aqString.GetListItem(txt, i);
Log.Message(s);
}
Related Content
Recent Discussions
- 2 days agovladd1