topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday March 19, 2024, 3:22 am
  • 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: Help with alias needed  (Read 3926 times)

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,640
    • View Profile
    • Donate to Member
Help with alias needed
« on: December 25, 2007, 05: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, https://www.donation...81.msg66910#msg66910 using Index Your Files instead, (http://www.indexyourfiles.com/).

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...........
« Last Edit: January 01, 2008, 05:08 AM by 4wd »