Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Syntax of SystemUtil.Run
#1
Solved: 11 Years, 3 Months ago
Hi,

I just want to understand the proper syntax of using this command.

Below is the syntax:

Code:
systemutil.run (filename,[parameters],[path],[operation],[mode])

Below is the example:

SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","","C:\Program Files\Internet Explorer","open"

Now, what I want to know is:


what parameter in the syntax corresponds to which value in example as I didn't got it and what may be the different values of parameters?

Also, it was very dissapointing for me to join this forum as I am not getting responses to my query and there are many queries pending.

I think that either moderators are not doing their work or are not assigned to this forum.
Reply
#2
Solved: 11 Years, 3 Months ago
If u want to run some executable file then it might be the case that u want to give some value as an input to the file. These inputs can be passed through [params] option.
For Example: SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","www.google.co.in"
I am running IE explorer.exe and passing the url that i want to open.

Correct me if wrong.

Regards,
Sankalp
Reply
#3
Solved: 11 Years, 3 Months ago
Thanks sshukla,

Your example is perfect but I want to know the meaning of each parameter in below syntax:

systemutil.run (filename,[parameters],[path],[operation],[mode])

Now, in case of your example, what this "C:\Program Files\Internet Explorer\IEXPLORE.EXE" corresponds to in syntax?

Does it correspond to filename? If yes, then I understood "www.google.co.in" is a parameter in your example.

Now, what can be the values for path, operation and mode (I know that these are optional parameters)
Reply
#4
Solved: 11 Years, 3 Months ago
Find the attachment it might help you.

Regards,
Sankalp


Attached Files
.doc   systemutil.doc (Size: 41.5 KB / Downloads: 1,473)
Reply
#5
Solved: 11 Years, 3 Months ago
Thanks sshukla,

So just want to confirm that:

filename is actually the path of the application you want to open, not just the name?
parameters is any parameter that can be required by invoking application. Can you please give me example of this?
path is default directory of file or application so just want to confirm that it corresponds to dir argument given in the document?
operation...i think it corresponds to op argument in docuument? if yes..then it is also not required.
mode is already given in document so it is not required
Reply
#6
Solved: 11 Years, 3 Months ago
I had difficulty trying to identify what each arguments were for... thanks for the explanation.
Reply
#7
Solved: 11 Years, 3 Months ago
SystemUtil.Run "iexplorer","url of the application"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  System Utility Syntax chita26 1 4,877 11-04-2014, 12:41 PM
Last Post: vinod123
  Syntax with descriptive programming martinshort 9 11,346 05-15-2013, 08:39 PM
Last Post: martinshort
Exclamation SystemUtil.run script is not generating while recording in qtp 9.5..pls help me senthil.kumar 0 2,558 01-24-2013, 02:09 PM
Last Post: senthil.kumar
  Method definition syntax clarification lavsat 0 2,950 06-29-2012, 10:32 AM
Last Post: lavsat
  Excel Find causes syntax error at runtime m336fnr 0 3,024 02-09-2011, 08:36 PM
Last Post: m336fnr

Forum Jump:


Users browsing this thread: 1 Guest(s)