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: Help with alias needed  (Read 5,113 times)

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Help with alias needed
« on: December 25, 2007, 11:56 AM »
Hi folks, I'm having trouble trying to get an alias to work.

It's basically a modification of lanux128's locate32 alias, http://www.donationcoder.com/forum/index.php?topic=8281.msg66910#msg66910 using Index Your Files instead, (http://www.indexyourfiles.com/).

Code
1000>>>IYF>->iyf $$1 Local|C:\PortableApps\FileUtils\iyf-x\iyf-x.exe --databases:Local --files:$$1>n>iyf $$1 in database $$2|C:\PortableApps\FileUtils\iyf-x\iyf-x.exe --databases:$$2 --files:$$1>+>^iyf (?:\s|)([^\s]*)(?:\s|)([^\s]*)(?:\s|)([^\s]*)(?:\s|)([^\s]*)

The first works fine where it searches in the database 'Local', but the second just doesn't seem to accept a database as an argument, it always defaults back to 'Local'.

i.e. I have two databases, 'Local' and 'Network'.

     'iyf posters network' should do: iyf-x.exe --databases:network --files:posters  (this works from a CLI BTW).

     But it just defaults to whatever database(s) used in the last search, (usually Local).

Can anyone point out what I've done wrong or what I need to do to get the second alias working.

Thanks

EDIT: AAARRRGGGHHHH!!!!!!!!!!!!!! Forget about it, my brain has obviously taken leave of my body.......thought it would automatically use the second alias when there was more than 1 argument...........too much Christmas cheer methinks...........
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903
« Last Edit: January 01, 2008, 11:08 AM by 4wd »

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