Execute function in RoutineBot

Syntax
Execute( Path:String, Params:String [optional] )

Parameters

Path:String

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

Params:String [optional]

string that specifies the parameters to be passed to the application.

Return value

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

Remarks

Function does not wait, before application will be closed.

Examples

open textfile
Execute('D:\SomeText.txt');
open notepad.exe
Execute('C:\WINDOWS\notepad.exe');
open file ‘D:\SomeText.txt’ in notepad
Execute('C:\WINDOWS\notepad.exe','D:\SomeText.txt');
Download example Execute

Reference
ShellExecute 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.

Email: