Multi Commander Support Forum

Multi Commander => Script => Topic started by: Mathias (Author) on August 23, 2011, 18:37:00

Title: Start a Search Automatically
Post by: Mathias (Author) 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
Title: Re: Start a Search Automatically
Post by: zorglups 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"
Title: Re: Start a Search Automatically
Post by: Mathias (Author) 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.


Title: Re: Start a Search Automatically
Post by: Ulfhednar on August 27, 2013, 13:39:55
This looks like something I need!
Will get on with trying it.   ;)