11-11-2010, 03:25 PM
(This post was last modified: 11-11-2010, 05:12 PM by ShrikantBiradar3449.)
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:
line2:
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