Author Topic: Start a Search Automatically  (Read 19557 times)

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4409
    • View Profile
    • Multi Commander
Start a Search Automatically
« on: August 23, 2011, 18:37:00 »
Custom command that will do a start a search for a predefined set of parameters.

Command Type : Custom Command

MC.FileSearch.Search SEARCHIN="${sourcepath}" SEARCHFOR="*.txt *.xml" CONTENT="MultiCommander" EXCLUDE=".svn" AUTOSTART

It will start a new search, It will search for the files in the current source path.
Search for all *.txt and *.xml files.

The files should have the content "MultiCommander" in them.

Exclude all folders named ".svn" , Do not scan that folder any any subfolder

HIDE - Hide the search criteria dialog.

AUTOSTART - Start the search immediately

zorglups

  • Junior Member
  • **
  • Posts: 31
    • View Profile
Re: Start a Search Automatically
« Reply #1 on: August 27, 2013, 02:00:17 »
I thought I would use this as a work-around to get the search to open expanded by specifying a string in the search for content field.
Unfortunatelly, this did not the trick.

MC.FileSearch.Search SEARCHIN="${sourcepath}" SEARCHFOR="*" CONTENT="MultiCommander"

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4409
    • View Profile
    • Multi Commander
Re: Start a Search Automatically
« Reply #2 on: August 27, 2013, 06:45:55 »
It might be because you do not have many files with the word "MultiCommander" in them.
Try remove the CONTENT="MultiCommander" search criteria.



Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 511
    • View Profile
Re: Start a Search Automatically
« Reply #3 on: August 27, 2013, 13:39:55 »
This looks like something I need!
Will get on with trying it.   ;)