Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

FSearch speed

Aug
1,957
71
If I understand correctly, this FSearch syntax will;

/G Change to the directory containing the first matching file (also sets /F and overrides /V)
/S Search subdirectories of the specified (or default) path.
/-1 Stop after n matches

Code:
E:\>timer fsearch /g /s /-1 bp.csv
Timer 1 on: 17:26:23
E:\\Documents\bp\bp.csv
E:\\Documents\vfp\bp\BP.csv
E:\\Utils\BP.csv

Matching lines: 0        Matching files: 3        Total files searched: 3
Timer 1 off: 17:27:12  Elapsed: 0:00:49.463

It does not stop after the first match,
It does not change to the directory containing the first matching file.

What am I not doing correctly with that FSearch syntax?

For the past few years,
I have been using the following (part of my c2p.btm),
which is much faster;
Code:
E:\>timer "C:\Program Files\JPSoft\TCMD%_vermajor\es.exe" /a-d -whole-word bp.csv
Timer 1 on: 17:25:03
E:\Documents\bp\bp.csv
E:\Documents\vfp\bp\BP.csv
E:\Utils\BP.csv
U:\BP.csv
E:\Documents\vfp\bp\BP.csv.bak
C:\Users\jlcav\AppData\Roaming\Microsoft\Windows\Recent\BP.csv.lnk
Timer 1 off: 17:25:03  Elapsed: 0:00:00.082

Joe
 
I think those switches only work if your searching for text in files. That's the stated purpose of FSEARCH.

If you're set up to use ES.EXE I reckon you could use the built-in EVERYTHING command (aliased, of course). It has slightly nicer syntax. If I remember correctly, EVERYTHING, like ES.EXE, support the full-blown Everything search syntax.

I also have an "ES" plugin.

Code:
v:\> es /?

Everything search

Syntax: ES [options] [search_string]

Search options:

  /C    case sensitive search
  /P    full path search
  /R    search string is a basic POSIX regular expression
  /V    list the volumes indexed (other options ignored)
  /W    whole word search

Display options:

  /D    show directories only
  /F    show files only (overrides /D)
  /M=N  limit printed results to N (does not affect totals [/T])
  /S    sort by full path
  /T[O] totals at end [totals only]
  /+[S][C|M|A] files only; show size, local time (creation, modified, accessed)

Other options:

  /B    rebuild the database
  /E    open the Everything search window
  /N    open a new search window
  /O    open the options dialog
  /X    ask the Everything client to exit

Web help:

  /H    search help; EVERYTHING.CHM in TCC's home directory if it exists
        else https://www.voidtools.com/support/everything/searching/
 
Back
Top