View Single Post
  #11  
Old September 15th 18, 07:26 AM posted to alt.comp.os.windows-10
B00ze
external usenet poster
 
Posts: 472
Default Windows 10 Updates: New Boot Screens

On 2018-09-14 01:16, Paul wrote:

B00ze wrote:
On 2018-09-13 11:29, Paul wrote:

3) Now, run the command.

This command should find any file which is an image,
*even if the file has no extension on the end to identify it*.
If a file "12345678" is a JPG, PNG, GIF etc, this finds it.

find /mnt/c -type f -exec file -i {} \; | grep ': image'

That command is very slow, even on an SSD. Go make a
three course meal in the kitchen, then come back and check.


Interesting solution; copied to my book of tricks ;-)


It's also possible to do sweeps of a system, using the
inverted search index and a database query. I wrote a
little AWK thing to poke that.


You can query the Windows index, like with PowerShell? It's too bad it
ain't that useful to begin with...

But that depends on a user having the Search Indexer set
up to index all of the hard drive. Which is damn hard
to arrange due to the interface provided. And those
indexing providers trigger off file extension, so you
need properly named files to play games with the stuff.
There would be no leverage for a "12345678" file not
having a proper extension on the end. I'd never find it.


Yeah, that tiny configuration window and the way it works is a real pain
to use, typical Microsoft non-resizable UI. But there are some strange
issues with the system index. I love having it built-in, but often I
have to use Agent Ransack because Explorer cannot find something in the
current folder that I KNOW is there, and has been there long enough that
it should be indexed. For example, it might not index .C and that's what
I want to search that day (it could easily detect plain text and index
it regardless of extension but it doesn't.) It's good for PDFs because I
have an iFilter for that, and for filenames (and even then, when I need
to be sure I use Agent Ransack.)

It amounts to doing this kind of thing in a search.

ext:jpg and width:1920

Paul


--
! _\|/_ Sylvain /
! (o o) Memberavid-Suzuki-Fdn/EFF/Red+Cross/SPCA/Planetary-Society
oO-( )-Oo C:\DOS\SYSTEM\OS2\UTILITIES\DOCS\HELP\WHERE\THE\F$ #%\AM\I?

Ads