Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call an .exe via QTP10 scripts
#1
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi,

How can we call .exe file using QTP10 scripts

Thanks in advance
Reply
#2
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi Rashmsrit,
Try:
Code:
SystemUtil.Run("filePath\name.exe")
Reply
#3
Solved: 11 Years, 3 Months, 2 Weeks ago
In most situations, you should use a SystemUtil.Run statement to run applications or to open files in their default application. For more information on the SystemUtil.Run statement, refer to the Standard Windows section of the QuickTest Professional Object Model Reference.
The InvokeApplication statement is supported primarily for backward compatibility ( From QTP Help)

The following example uses the InvokeApplication function to open Internet Explorer.

InvokeApplication "E:\Program Files\Plus!\Microsoft Internet\IEXPLORE.EXE"

Thanks,
Reply
#4
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi Manish,
Thanks a lot
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  System crashing is in QTP10 santhoshjean 0 2,199 09-24-2013, 12:49 AM
Last Post: santhoshjean
  How to find the latest modified file in QC11 current test attachment using QTP10 shiv.cse 0 1,874 07-23-2013, 01:25 AM
Last Post: shiv.cse
  Will QTP10.0 Supports Google Chrome Poonam T 2 6,229 02-19-2013, 04:41 PM
Last Post: pradeep singh
  Compatibility Issue while installing QTP10 in Windows7 (64 bit) rima.majumdar 2 4,945 05-15-2012, 09:47 PM
Last Post: rima.majumdar
  Issue with running scripts developed in qtp10 using qtp11 fghiremath 0 3,049 03-14-2012, 05:37 PM
Last Post: fghiremath

Forum Jump:


Users browsing this thread: 1 Guest(s)