topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday March 29, 2024, 6:05 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: search in startup folders ?  (Read 4654 times)

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
search in startup folders ?
« on: August 14, 2007, 05:12 PM »
Hi all,

is there a way to search in two (or more) startup folders (Me and All users...) using a dosearch command ?

i can search in mine like so :
dosearch C:\Documents and Settings\Nico\Start Menu\Programs\Startup\. $$1

and in all users :
dosearch C:\Documents and Settings\All Users\Start Menu\Programs\Startup\. $$1

but is there a way to combine those two dosearch into one ?

i'm sure there is a trick but i did not find anything ...

PS: the goal is to relaunch a startup app (a bit like Skrommel's ReRun but for only one app...)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: search in startup folders ?
« Reply #1 on: August 14, 2007, 05:20 PM »
yes you could do like this:
go to directory search tab, and add those two directories:
 C:\Documents and Settings\Nico\Start Menu\Programs\Startup\
 C:\Documents and Settings\All Users\Start Menu\Programs\Startup\
And for both of them put a keyword modifier like: nicome

now in your alias put
dosearch +nicome $$1

should work i think.

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
Re: search in startup folders ?
« Reply #2 on: August 14, 2007, 05:31 PM »
thanks mouser, works like a charm  :D

final code :
Startup $$1 | dosearch +startup +. -alias $$1

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
Re: search in startup folders ?
« Reply #3 on: August 14, 2007, 07:09 PM »
WARNING

Never choose a keyword modifier name that is the same as an alias...

i could not launch any results when :

  • my startup "dosearch command" was called "startup"
  • the keyword modifier of my two folders was "startup"

i guess in
Startup $$1 | dosearch +startup +. -alias $$1
the +startup is ambiguous, is it the alias ? the folders ? i guess this is what's going wrong

anyway, i changed the keyword modifier for the two folders to folder_startup
(i do remember i had the same pb, that's why i always use the prefix "folder_" for my folder keyword modifiers...)
and now it works...
Startup $$1 | dosearch +folder_startup +. -alias $$1

I suggest that you encourage people to prefix the folder keyword modifiers when used in dosearch command (since the length of the variables are not big deal... only entered once...)
I'm afraid it is the same with action keywords (which i prefix with open_)

Cheers, Nitrix

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: search in startup folders ?
« Reply #4 on: August 14, 2007, 08:43 PM »
Nitrix how would you feel about preparing a little guide like: Advanced FARR Hacking?
I think you are the only one (and yes I'm including myself) that has discovered all these little tricks.

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
Re: search in startup folders ?
« Reply #5 on: August 15, 2007, 03:54 AM »
Nitrix how would you feel about preparing a little guide like: Advanced FARR Hacking?
I think you are the only one (and yes I'm including myself) that has discovered all these little tricks.

i feel proud  :D, i also feel the majority of people did not get the power of dosearch commands yet...
i could prepare a little guide about all the FARR tricks i use, but it would take some time
does it have to be ready for the V2 release ??  :o

maybe we can collaborate on this : i could prepare a draft...
that you could review, and so on (plus english is not my mother's tongue  :P)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: search in startup folders ?
« Reply #6 on: August 15, 2007, 08:09 AM »
maybe we can collaborate on this : i could prepare a draft...
sounds good, others may be able to help too.

does it have to be ready for the V2 release ??
not necessarily.