Forum Discussion
Kitt
Regular Contributor
Here are some TestComplete references that should help: [1] & [2].
Depending on whether you are running CMD via a script file (.bar or .ps1) or direct command, you could try this implementation discussed [here].
pwang
2 years agoOccasional Contributor
Thank you for your reply, But I can still not find the solution for the problem.
I don't use .bar or .ps1, My code is like this:
CommandLine = 'net stop service';
var oExec = Sys.OleObject("WScript.Shell").Exec(CommandLine);
if (oExec.StdOut.AtEndOfStream) { ...}
Related Content
- 12 years ago
- 3 years ago
- 7 years ago
Recent Discussions
- 12 hours ago