How to? @search problem

rps

Jul 6, 2008
426
5
Based on how I read the docs. I should be getting a filename result when issuing:
Code:
echo %@search[tcmdv2*.exe,"c:\jpsoft\"]
actual result
Code:
ECHO is OFF
What I expect is
Code:
C:\JPSOFT\TCMD20x64\tcmdv20-11-46.exe
I have tried many many variations of the program name with little success. Even the exact name of the file without a wildcard.
Clearly I don't understand how @search works or the proper syntax required.
How can I use @search program wildcards to locate an existing file in a sub-directory like the one specified in the example above?
I am expecting @search to look in the sub-directories of C:\jpsoft\ to find the exec file, like the docs show.
Code:
echo %@search[msv*.dll,"d:\my dir\"]
D:\my dir\test\msvc.dll
C:\>ver

TCC 21.01.47 x64 Windows 10 [Version 10.0.15063]
 
May 20, 2008
10,498
77
Syracuse, NY, USA
I don't think @SEARCH recurses. Try @execstr[ffind /s /k /m ...]
Code:
p:\mapm> echo %@execstr[ffind /s /k /m g:\tcc.exe]
G:\TC11\tcc.exe
 

rconn

Administrator
Staff member
May 14, 2008
11,894
133
@SEARCH will search the directories in your PATH environment variable, or optionally an argument (in the same format as PATH) listing the directories to search. It does not search subdirectories of the directories in PATH or the alternate path argument.