ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

How do you pass multiple arguments?

(1/2) > >>

kartal:
I looked at the email alias and it looked quite complicated as far as expresions go.

What I need it passing $$1 and $$2 to and exe file in the way below

abc.exe argument -$$1 argument -$$2


d4ni:
Not sure what you want, cause you are basically giving the answer yourself already ;) Do you have difficulty with capturing arguments using regexp or applying them, cause applying is done the way you described, basically. Anyway, here's an example using the ping.exe file:

Regexp: ^ping (.+) (.+)
Command: C:\Windows\System32\ping.exe -n $$1 $$2

This pings a host n times, with host = $$2 and n = $$1

kartal:
d4ni, my suggestion does not work. It looks like when you pass multiple arguments default reg ex stuff does not work that is why I was asking about it.

Probably regex stuff is very powerful but it makes simple operations complicated  if you do not know much about it. I use launchy as well and I do not need extra expression stuff to pass simple arguments. I wish there was an option for simplified operations like the one I am trying to achieve.

kartal:
Your suggestion does not work either. I am trying to write a commandline for sending email. What happens is that I cannot get to second argument in Farr command line after tab. If I try space after first argument in the Farr line it opens my sendmail.exe and closes. So basically it looks like no argument is passed to sendmail.exe.


here is the code

1000>>>email>->email $$1 $$2 | path to \sendEmail.exe -s mail.mymail.com:2025 -xu [email protected] -xp password -t $$1 -u $$2 -f email@mymail>+>^email (.+) (.+)

mouser:
Probably regex stuff is very powerful but it makes simple operations complicated  if you do not know much about it. I use launchy as well and I do not need extra expression stuff to pass simple arguments. I wish there was an option for simplified operations like the one I am trying to achieve.
--- End quote ---

you have a good point there.. perhaps i should include some sample regex that one can select if one just wants to have it trigger on standard space separated arguments, etc.

Navigation

[0] Message Index

[#] Next page

Go to full version