12-15-2015, 09:42 PM
General question:
If I have a certain example.exe (has no GUI) that I can run through cmd.exe and accepts commands through cmd.exe, and outputs also in said cmd.exe. How can I get QM to send commands to example.exe and get the output of example.exe for further use in QM? example.exe is a complex program and should remain active (so not a simple "open example.exe -> input command -> get output from example.exe -> close example.exe", but more like "open example.exe -> input command -> get output from example.exe (-> QM uses this output) -> input command -> get output from example.exe (-> QM uses this output) ->..."
Manually, I would have to right-click and paste the input command in cmd.exe and press enter. When example.exe outputs in cmd.exe -> right-click -> click "mark" -> select the output text in cmd.exe -> press enter to copy it.
How can I do this in QM?
Alternatively, can I run example.exe directly from QM, send commands to it and get its output in QM (while keeping example.exe active)?
Edit: I wonder if it has something to do with this: Capturing output stream from console app ? But I would still need a way to send commands to example.exe :/
If I have a certain example.exe (has no GUI) that I can run through cmd.exe and accepts commands through cmd.exe, and outputs also in said cmd.exe. How can I get QM to send commands to example.exe and get the output of example.exe for further use in QM? example.exe is a complex program and should remain active (so not a simple "open example.exe -> input command -> get output from example.exe -> close example.exe", but more like "open example.exe -> input command -> get output from example.exe (-> QM uses this output) -> input command -> get output from example.exe (-> QM uses this output) ->..."
Manually, I would have to right-click and paste the input command in cmd.exe and press enter. When example.exe outputs in cmd.exe -> right-click -> click "mark" -> select the output text in cmd.exe -> press enter to copy it.
How can I do this in QM?
Alternatively, can I run example.exe directly from QM, send commands to it and get its output in QM (while keeping example.exe active)?
Edit: I wonder if it has something to do with this: Capturing output stream from console app ? But I would still need a way to send commands to example.exe :/