Traps for young players ...

General discussion related to "Everything".
Post Reply
ChrisGreaves
Posts: 686
Joined: Wed Jan 05, 2022 9:29 pm

Traps for young players ...

Post by ChrisGreaves »

It took me a few minutes to work this out, but finally ...The first three searches made sense to me (all search strings were entered without quotes)
The fourth search rattled me.
Untitled.png
Untitled.png (4.95 KiB) Viewed 7890 times
Because I am used to programming languages, where, apart from strings, spaces are redundant - Indeed short books have been written on making use of white-space in program code - I wrote the fourth search thinking "brahms AND NOT sonata" but the search string, using <space> as AND reads:-
"brahms" AND "!" AND "sonata"
And of course, I have no objects whose name contains all three strings!

The NOT operator must be applied to a string, must be applied immediately to the left-hand end of a string.
Is that correct? Can i go on learning now? :lol:
Thanks, Chris
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Traps for young players ...

Post by NotNull »

!
basically means NOT. ( = Not .. "anything" in my interpretation).
So even by itself (without Brahms or sonata) should give zero results.


But the rabbit hole goes deeper ...
Try
!!
:) = NOT NOT = NOT NOT anything = Everything = all files/folders.

If you have a file named My favorite Brahms sonata!.wav, you can search for the exclamation mark character by enclosing it in double quotes, like
"!"
or
"sonata!"

The search
Brahms "!" sonata
qwould also find it.


(just to stir things up a little :D)
ChrisGreaves
Posts: 686
Joined: Wed Jan 05, 2022 9:29 pm

Re: Traps for young players ...

Post by ChrisGreaves »

NotNull wrote: Wed Feb 01, 2023 9:43 pm But the rabbit hole goes deeper ...
Try
!!
:) = NOT NOT = NOT NOT anything = Everything = all files/folders.
Oh well, if I am allowed to be playful (grin) ... Succesively long strings of exclamation marks flip-flop between zero and non-zero results.

Next question: How to filter out responses about Null results from the Not operator so that responses from NotNull do Not show up OR show up as Null? ;) ;) :lol: :!:
Cheers, Chris
ChrisGreaves
Posts: 686
Joined: Wed Jan 05, 2022 9:29 pm

Traps for young players - command lines

Post by ChrisGreaves »

MenuSystem_67.png
MenuSystem_67.png (21.94 KiB) Viewed 6997 times
MenuSystem_68.png
MenuSystem_68.png (18.68 KiB) Viewed 6997 times
This is like those "Spot the Difference" puzzles I used to solve in Charlie Chuckler's Weekly, so my early education has stood me in good stead.
(1) I used Everything itself to locate the executable
ext:exe everything
then used Right-click, Copy Full Path, so I know that I got that part right.
(2) I pasted the parameter
-create-file-list
directly from the excellent Help page, so I know that I got that part right
(3) I used Everything itself to locate the EFU list I created before lunch
ext:efu
then used Right-click, Copy Full Path, so I know that I got that part right
(4) I typed in the Y: by hand, reasoning that if I can't be trusted to get that right, I should have another nap and try again tomorrow.

What can possibly go wrong?

FREE fish-and-chips dinner at Skippers for the first four correct answers (pay your own air fare and bring a rain-coat)

Cheers, Chris
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Traps for young players ...

Post by therube »

Quotes (vs. "not quotes").
(Note how I put "not quotes" in quotes.)
(I'll also note that I have written, in these parts, about quotes.
I'm thinking I might put forth a constitutional amendment banning quotes.
US only, CA need not apply.)


Quotation marks
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Traps for young players ...

Post by therube »

then used Right-click, Copy Full Path
Did Copy Full Path (along with 'Double quote copy as path') do that, or did you?
ChrisGreaves
Posts: 686
Joined: Wed Jan 05, 2022 9:29 pm

Re: Traps for young players ...

Post by ChrisGreaves »

OK TheRube. You get only one, not two free meals down the fish'n'chips. Because your first answer was incorrect. Three meals left.
Quotes (vs. "not quotes").
(Note how I put "not quotes" in quotes.)
(I'll also note that I have written, in these parts, about quotes.
I'm thinking I might put forth a constitutional amendment banning quotes.
US only, CA need not apply.)
Yes, I did, July noted even though it is only June here (he said staring out the rain-swept window) I'd skip the amendment if I were you. Everyone has the right to bear quotes.

Incorrect because in both command window examples, quotes are in use.
But yes: I was documenting my work as I went, in MSWord (because I have an automatic save every minute) and have MSWord set up to use "smart quotes"(1) which I then mindlessly copied into my command window.

then used Right-click, Copy Full Path
Did Copy Full Path (along with 'Double quote copy as path') do that, or did you?
Yes.

I caused the double quotes to appear because, as is my wont, I always type two double-quotes to ensure balance, then paste between the two double quotes. MSWord, seeing smart-quotes is set made them smart quotes (also known as curly quotes in some parts of the UK)
This can be confirmed quite easily by choosing Copy Full Path and pasting into Windows Notepad. No quotes appear.

So now I see that you didn't propose a correct answer. No lunch at all for you. Four meals left for grabs.

But then I went back and saw that second copy "Copy as path" is a second full-path copy, but this time with double-quotes:-
Untitled.png
Untitled.png (17.5 KiB) Viewed 6983 times
OK. I will split my meal with you; you can have the fish, caught this morning about a mile past the sewage outfall.

(1)habit-forming, aren't they?!!???
Cheers, Chris
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Traps for young players ...

Post by NotNull »

And here I thought this was an easy way to equalize my debt to you -- I lost a bet which I can't even remember what it was about, but it will cost me a coffee. But these free meals don't come easy ...

The answer itself was easy enough though: The error message comes from CMD and not from Everything, so the clue would be in the very first part of the command. As you pasted the path, it had to be the quoting of this path.

Oh well, will have to wait for the next challenge ...

ChrisGreaves wrote: Tue Jun 13, 2023 6:34 pm you can have the fish, caught this morning about a mile past the sewage outfall.
Now I wonder: how is the coffee at Skippers? :D
ChrisGreaves
Posts: 686
Joined: Wed Jan 05, 2022 9:29 pm

Re: Traps for young players ...

Post by ChrisGreaves »

NotNull wrote: Tue Jun 13, 2023 7:12 pmAs you pasted the path, it had to be the quoting of this path.
OK. The fish plus seven of my chips.
Now I wonder: how is the coffee at Skippers?
Same as everywhere in Bonavista - drip coffee, cans from Swyers Grocery.😰
Cheers, Chris
Post Reply