How to? @search problem

rps

Jul 6, 2008
436
6
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
11,401
99
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
12,345
150
@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.
 
Similar threads
Thread starter Title Forum Replies Date
M Problem with Extended Search and non-ASCII characters in directories names Support 3
samintz How to? Search for %(command) in Help? Support 1
Joe Caverly Quick Search in eWriter Help Support 1
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
fpefpe How to? gosub and label search Support 4
vefatica Command history search is off Support 7
D Directory History Window with wildcard search Support 3
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
D Faster string search Support 8
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
Joe Caverly Pipe into VIEW and search Support 12
G Extended directory search not working Support 4
M Documentation Q.Search doesn't support selection? Support 1
vefatica Keyword - instant search? Support 1
vefatica WAD Help Search broken? Support 3
Joe Caverly LIST /T (search for Text) Support 2
H FuzzyCD: JPSTREE vs. Everything Search Support 1
J Extended directory search has stopped working Support 9
fpefpe Documentation Search order Support 2
J Extended directory search - cure by renaming tcmd.ini Support 10
S Trouble accessing results of forum search Support 2
J Fixed IDE search keys don't work in TCMD 13.01.32 Support 3
G Find files but ignore file extension in search Support 2
J Initialise; Alias; Extended directory search Support 2
Frank is the search-function in VIEW working? Support 2
deleyd How does TCC search for a command? Support 2
J Extended directory search - spaces in names Support 5
J How does tcc search for perl*.dll Support 1
fpefpe @search[] function Support 3
Dick Johnson Weird Color Problem Support 8
fishman@panix.com Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9
fishman@panix.com Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2
fishman@panix.com New Problem with later Windows 10 Support 10

Similar threads