- Jun
- 789
- 7
Suggestion: EVERYTHING should have an option that works like the FFIND /S option. This can be done now by explicitly giving the path in the EVERYTHING argument, but an option would simplify using this.
By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!everything v:\hold\*.txt
everything /p v:\hold\*.txt
everything /d /p dbase
Maybe I wasn't clear. I don't want to have to type the current directory. If I have to do that, I'll just use FFIND. I use "FFIND /S" a lot.And have you got a (hypothetical) example in which the proposed option would offer much simplification?
everything e:\utils\*.chm
everything %_cwd\*.chm
e:\utils>everything /x *.chm
I see. I use FFIND a lot also, buy rarely in the current directory.Maybe I wasn't clear. I don't want to have to type the current directory. If I have to do that, I'll just use FFIND. I use "FFIND /S" a lot.
everything /p "_test"
OK, thanks. I was trying to combine it with a file spec.It's a path search:
for example should list all paths which have a directory with _test (in name).Code:everything /p "_test"
Not quite.It's a path search:
for example should list all paths which have a directory with _test (in name).Code:everything /p "_test"
everything /p dbase
This seems to do it (no guarantees).This may not be well thought-out but a possible solution (for Rex) might be this: if the (any) search pattern does not contain a path (i.e., a '\'), prepend _CWDS to it. That wouldn't require a new switch. I wonder if that could be done with an alias or a BTM.
:: ESEARCH.BTM - prepend _CWDS to search specs without a path
:: if /P appears, leave the next parameter alone
setlocal
unset /q args
do while %# GT 0
iff "%1" == "/P" then
set args=%args %1 %2
shift 2
iterate
endiff
iff %@index[%1,/] != -1 .or. %@index[%1,\] != -1 then
set args=%args %1
else
set args=%args %[_cwds]%1
endiff
shift
enddo
everything %args
Yes.Is my understanding correct?
E:\Windows Kits\10\Include\10.0.19041.0\um\Wsdbase.idl
E:\DOSBox\DATA\DBASE\MUTUAL\wsh.ch
E:\DOSBox\DATA\DBASE\MUTUAL