Micro Focus QTP (UFT) Forums
SystemUtil.Run and invokeapplication - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: SystemUtil.Run and invokeapplication (/Thread-SystemUtil-Run-and-invokeapplication)



SystemUtil.Run and invokeapplication - sudhirzpatil - 02-11-2009

Can anyone tell me the difference between SystemUtil.Run and invokeapplication


RE: SystemUtil.Run and invokeapplication - Prafulla - 02-11-2009

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.


RE: SystemUtil.Run and invokeapplication - sreekanth chilam - 02-11-2009

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