Okay, I take back my words. I have yet to find a complete solution for using "-" as part of the search. If there are three files like so:
Code: Select all
C:\dogs\dogs [list]man.png[/list]
C:\dogs\dogs -man.png`
C:\dogs\dogs[list]man.png`[/list]
ES -match-path dogs ' -' man
finds:
Code: Select all
C:\dogs\dogs - man.png
C:\dogs\dogs -man.png`
but does not find
C:\dogs\dogs -man.png
On the other hand
ES -match-path dogs '- ' man
finds:
Code: Select all
C:\dogs\dogs - man.png
C:\dogs\dogs- man.png
but does not find
C:\dogs\dogs -man.png
I also tried
ES -match-path dogs `<'- '`|' -'`>man
("`" is for Powershell escaping ) and nothing gets returned.
Perhaps I can create a bookmark, use its macro to insert a literal
-
in the ES search, I will try that and see.
Also does anyone know if ES supports the 1.5 pre-processor features? Perhaps wrapping a pre-processor replacement into a bookmark macro might do it. I have never used them but this might be an ideal use case.
@therube
I am targeting PowerShell, I really would not know where to begin with CMD (I never touch it...)