topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 18, 2024, 6:10 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: how to pass arguments?  (Read 6864 times)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
how to pass arguments?
« on: September 26, 2006, 09:25 PM »
how do i make alias for a program that needs two arguments appended to it?
this is how the command line should be: sp.exe "FFFFFF" "wallpaper.bmp" (the quotes doesn't matter).

and here is how i created (attempted more likely) the alias:
FarrAlias.png

any help would be much appreciated..

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: how to pass arguments?
« Reply #1 on: September 27, 2006, 03:07 AM »
you don't really need to have the $$2 on the command line, since it'll never be used. the $$1 will contain everything you pass to the alias.
So, if you remove $$2 on the results editbox, it should work perfectly.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: how to pass arguments?
« Reply #2 on: September 27, 2006, 08:55 PM »
thanks jgpaiva, it works ok now.. :Thmbsup: where can find more info on this?

note to self: sp.exe can be found here.


jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: how to pass arguments?
« Reply #3 on: September 28, 2006, 03:59 AM »
sp.exe is pretty cool, i'll keep that in mind for the next time someone asks for a wallpaper changer ;)

I'm not sure where you could get more info about this. Maybe a search for "alias" or "groups" here in the find and run forum would get you some interesting results. Another interesting search would be "regex" or "regular expressions".
Most definitelly, it's very useful to have regex, it can solve a bunch of problems, sometimes.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: how to pass arguments?
« Reply #4 on: September 28, 2006, 09:00 PM »
tks jgpaiva, but i'm too dumb for regex, somehow brain cells can't retain info about those operators. :-[
i usually refer to this topic & modify them. if the result is ok, then fine or else i usually just give up..


jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: how to pass arguments?
« Reply #5 on: September 29, 2006, 04:59 AM »
if the result is ok, then fine or else i usually just give up..
You shouldn't give up, regex is quite useful! ;)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: how to pass arguments?
« Reply #6 on: October 01, 2006, 09:36 PM »
You shouldn't give up, regex is quite useful! ;)
thanks for encouragement, jgpaiva. :) actually i did try but there was no Regex for Dummies..
do you know of any super links that could help someone like me..

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: how to pass arguments?
« Reply #7 on: October 02, 2006, 02:53 AM »
do you know of any super links that could help someone like me..
Well... everything i know, i've learned here: http://www.regular-expressions.info/
Also, to test stuff up, don't forget to check out allen's rereplace!

Still, there definitelly should be a "regex for dummies" :D

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: how to pass arguments?
« Reply #8 on: October 02, 2006, 03:12 AM »
tks for the links, jgpaiva. will give it a try again. :Thmbsup: