Unable to launch command prompt using rapise when recording a script

Monday, November 6, 2017 1:57:06 PM

Hi

I am trying to automate the flow of running a command in the command prompt for several machines. I am unable to launch  command prompt from Rapise. When an instance of  command prompt is already open, I am able to select that and complete the test and for replaying the script I need to have the command prompt open. I cannot do this in all the machines that I would like to test. I want Rapise to launch  command prompt and execute the command and close the window .

When I click on 'Record' and I select 'Run Application" tab and give the path to cmd.exe, It does not open the command prompt.

 

Please let me know if this is possible?

Thanks

Jagan

1 Replies
Monday, November 6, 2017 5:37:49 PM
Avatar
re: jagansmohan on Monday, November 6, 2017 1:57:06 PM

Hi Jagan

Please use:

Global.DoLaunch("cmd.exe");

You can then send keyboard commands to the open command prompt using:

Global.DoSendKeys("ipconfig.exe{ENTER}");

(for example).

Regards

Adam

Statistics
  • Started: Monday, November 6, 2017 1:57:06 PM
  • Last Reply: Monday, November 6, 2017 5:37:49 PM
  • Replies: 1
  • Views: 97