Command to search for non-ASCII characters

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
raywood
Posts: 22
Joined: Fri Apr 29, 2011 7:42 pm

Command to search for non-ASCII characters

Post by raywood »

I have discovered the technique of entering regex:[^\x00-\x7F]+ in the GUI, to find filenames that contain non-ASCII characters. But how can I open the GUI, with that search, from a batch command? Running everything.exe or es with regex or -regex doesn't do it.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Command to search for non-ASCII characters

Post by NotNull »

That is because a ^ has special meaning on the CMD prompt/in a batch file.
You can bypass (escape) that meaning by using an extra ^ :

Code: Select all

"c:\path to\Everything.exe" -search regex:[^^\x00-\x7F]
"c:\another path to\es.exe" regex:[^^\x00-\x7F]
raywood
Posts: 22
Joined: Fri Apr 29, 2011 7:42 pm

Re: Command to search for non-ASCII characters

Post by raywood »

Not seeing any way to click SOLVED or Thank You. But thank you. That worked.

FYI, I stick a copy of a file like everything.exe into C:\Windows, and then I only need everything -search regex:[^^\x00-\x7F].

Cheers!
raywood
Posts: 22
Joined: Fri Apr 29, 2011 7:42 pm

Re: Command to search for non-ASCII characters

Post by raywood »

Apparently no way to edit previous post. Correction: that last one should read:
everything -search regex:[^^\x00-\x7F]+
with a plus at the end as shown.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Command to search for non-ASCII characters

Post by NotNull »

The "+" is not really needed:

regex:[^^\x00-\x7F] searches for a non-ascii character
regex:[^^\x00-\x7F]+ searches for one or more non-ascii characters "in a row".

Net result will be the same.
raywood
Posts: 22
Joined: Fri Apr 29, 2011 7:42 pm

Re: Command to search for non-ASCII characters

Post by raywood »

This thread is updated at viewtopic.php?f=5&t=12173&p=49868#p49868.
Post Reply