Micro Focus QTP (UFT) Forums

Full Version: SystemUtil.Run and invokeapplication
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone tell me the difference between SystemUtil.Run and invokeapplication
Both of them seerves the same purpose to invoke an application.

In most situations, you should use a SystemUtil.Run statement to run applications or to open files in their default application.
The InvokeApplication statement is supported primarily for backward compatibility.
Hi Sudhir & Prafulla,

Infact InvokeApplication & Systemutil.run are not used for same purpose.

InvokeApplication : Used for invoking the .Exe (Executable) Applications only.

SystemUtil.run : used for invoking the following Applications :
--> .exe
--> .txt
--> .doc
--> .xls
--> URL's (Web Appl.) also .......

Just try it out & see ... You will come to know the difference.Smile