I'm using SystemUtil.Run (pathName)
in UFT, VBScript. But it gives me
invalid procedure call or argument.
I'm sure about pathName, I'm sure about the command, I'm sure about everything. What do you think might be the cause?
I'm using SystemUtil.Run (pathName)
in UFT, VBScript. But it gives me
invalid procedure call or argument.
I'm sure about pathName, I'm sure about the command, I'm sure about everything. What do you think might be the cause?
I have ran into the same issue. I had to write the full path name for the error to go away.
example: SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "www.google.com"
I hope this helps you.
If you look at the examples here, you'll see that the approved call is
(passing pathName per reference) instead of
(passing a const copy).
Eric Lippert's essay should help you to understand the use of () in VBScript.
Evidence:
As I don't use UFT, I can only use .NET to demonstrate that the ()/parameter passing mode matters: