Author Topic: Problems with MC.FileSearch.Search  (Read 15077 times)

Syscom

  • Newbie
  • *
  • Posts: 2
    • View Profile
Problems with MC.FileSearch.Search
« on: August 30, 2022, 17:34:03 »
Hello,
I've been using multicommander for now more than a year.
It's a fantastic tool.
But in a script I'm facing a problem with filesearch:
 I wrote a script to "normalize" the directory names on a server.
To extract all the subdirectories names from a directory I try to use sth MC.FileSearch.Search function.
But when I run the script, nothing happens.
As far as i understand, it should return its results in RES: Or eventually an array if assigned to.
I've tried the example syntax seen in the documentation.
But nope !
What is the exact syntax in the script language ?
I use the V12.1 Build 2906 on windows 10.
Thanks For you help.
Olivier
« Last Edit: August 30, 2022, 17:41:27 by Syscom »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4423
    • View Profile
    • Multi Commander
Re: Problems with MC.FileSearch.Search
« Reply #1 on: September 01, 2022, 08:02:54 »
MC.FileSearch.Search currently not working.. Since search feature was rebuilt to use virtual devices like RESx: for result, the scripting does not work anymore.
But it is high up on the list of my to fix list.

However MC.FileSearch.Search will never return a list to you, it is just a scriptable way to start the search with a set rule of rules.

For low level access you need to use MultiScript functions and there is no direct search support there..
but you can enumerate files and get file info and such. so you can build you own search script for simple search that get a list of matches that you den do something with in the script.



Syscom

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Problems with MC.FileSearch.Search
« Reply #2 on: September 12, 2022, 15:00:46 »
Hello Mathias
Thanks for your quick answer.
I will try another way.
Olivier