DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: how to pass arguments?  (Read 8,940 times)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
how to pass arguments?
« on: September 27, 2006, 02:25 AM »
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

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: how to pass arguments?
« Reply #1 on: September 27, 2006, 08: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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: how to pass arguments?
« Reply #2 on: September 28, 2006, 01:55 AM »
thanks jgpaiva, it works ok now.. :Thmbsup: where can find more info on this?

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

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: how to pass arguments?
« Reply #3 on: September 28, 2006, 08: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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: how to pass arguments?
« Reply #4 on: September 29, 2006, 02:00 AM »
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

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: how to pass arguments?
« Reply #5 on: September 29, 2006, 09: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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: how to pass arguments?
« Reply #6 on: October 02, 2006, 02:36 AM »
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

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: how to pass arguments?
« Reply #7 on: October 02, 2006, 07: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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: how to pass arguments?
« Reply #8 on: October 02, 2006, 08:12 AM »
tks for the links, jgpaiva. will give it a try again. :Thmbsup:

Original address: https://www.donationcoder.com/forum/index.php?topic=5475.0