Page 1 of 1

Ranorex Studio, Remote Desktop, and Ranorex Agent

Posted: Wed Apr 25, 2018 4:11 pm
by mvlismas
Here is my scenario.

I have a dual monitor system. On the left monitor I am using Ranorex Studio 8.1. On the right monitor I am using a remote desktop session that is running the Ranorex remote agent. After completing the test on the remote system I want to launch a command window on my local machine (left window) the executes the pskill command to remotely kill the Ranorex agent on the remote system. However with the remote session still open I run the following command:

Code: Select all

Report.Log(ReportLevel.Info, "Application", "Run application 'cmd.exe' with arguments '' in normal mode.", new RecordItemIndex(0));
Host.Local.RunApplication("cmd.exe", "", "C:\\windows\\system32\\", false);
Delay.Milliseconds(0);
But it opens a command window from the remote desktop machine and the pskill command fails. I want to know how to specify that I want to launch a command window from my local machine, NOT the remote machine while the remote desktop is still open?

Re: Ranorex Studio, Remote Desktop, and Ranorex Agent

Posted: Thu Apr 26, 2018 2:30 pm
by mvlismas
I figured it out if any body is interested. For that particular cmd window call, I specified the command window from the list in the repository items.