Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arguments to pass while using Extern.ShellExecute command in QTP
#1
Solved: 10 Years, 9 Months, 2 Weeks ago MyBB 
Hi guys,

I am using an existing code given below but not clear with the sequence of arguments passed in "Extern.ShellExecute " statement.
This code is to run a .bat file stored at location "C:\Share\Shri\shridos.bat" using Extern object of QTP

I am expecting more about the mandatory arguments and their sequence while using "ShellExecute" method in QTP. i.e line2

line1:
Code:
Extern.Declare micInteger , "ShellExecute", "shell32.dll", "ShellExecuteA" , micLong, micString, micString,  micString, micString, micLong

line2:
Code:
Extern.ShellExecute 0, "open", "C:\Share\Shri\shridos.bat","C:\Share\Shri" ,"", 1
Reply


Messages In This Thread
Arguments to pass while using Extern.ShellExecute command in QTP - by ShrikantBiradar3449 - 11-11-2010, 03:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Telnet command not recognized Sanjana1987 1 1,863 09-20-2017, 03:16 PM
Last Post: Ankur
  WinListView set item command Shahino007 0 2,540 10-06-2015, 03:57 PM
Last Post: Shahino007
  PASS/FAIL in QTP badri 3 5,911 12-05-2014, 03:26 AM
Last Post: kiranpol
  Same command needs to be performed twice to actually perform it pistaa 2 2,654 04-25-2014, 01:26 PM
Last Post: pistaa
Exclamation Getting run time error while executing the QTP script in command prompt. vishruth143 1 5,480 07-15-2013, 05:41 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)