ShellExecute function in RoutineBot

ShellExecute( Path:String, Params:String [optional], WaitBeforeClose:Integer [optional] )



string that specifies the file to execute. File can be executable file or some document.

Params:String [optional]

string that specifies parameters to be passed to the application.

WaitBeforeClose:Integer [optional]

if this parameter is 1, then interpreter wait, before application is running or file is opened. Otherwise, if this parameter is 0, function does not wait, before application(file) is running. If this parameter is 0 this function is equal to function Execute.

Return value

If file exists function return 1, otherwise function return 0.


If WaitBeforeClose = 1 then function waits, before application will be closed.

This example runs notepad.exe and waits until notepad is running.
Download example Shellexecute.

Execute function

Posted in Articles
Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *


Example: GUI test with RoutineBot

RoutineBot is testing GUI, trying to enter various values into the text fields and processing warning messages that tested program shows.

Gui Test Automation

GUI Testing TipsCheck out our GUI Test Automation tips.
Test Automation Step-by-Step
Learn more than 99% users know about test automation! Subscribe to maillist now! Learn how to create scripts that will do routine job for you.