I want to launch an application from QTP. Its a Java application and exe file passes a parameter as well. So the complete path to open the application is
C:\Windows\SysWOW64\CCM\VAppLauncher.exe /launch "Axiom AU - UAT 7.14"
What I am doing is
systemUtil.Run "C:\Windows\SysWOW64\CCM\VAppLauncher.exe /launch "&chr(34)&"Axiom AU - UAT 7.14"&chr(34)
However QTP is throwing an error message "Invalid Procedure call or argument"
Please help. Thanx in advance
Amit your issue is the parameters. You are passing parameters with executable. SystemUtil.Run takes parameter separately SystemUtil.Run "C:\Windows\SysWOW64\CCM\VAppLauncher.exe", "/launch ""Axiom AU - UAT 7.14"""