Is it possible to search for content within an archive file

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Is it possible to search for content within an archive file

Post by harryray2 »

Is it possible to search for content within an archive file (.rar, .zip and .7z)?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to search for content within an archive file

Post by void »

No.

Searching for filenames in zip files is possible with container-filename: search function.

For example:
Everything.zip containerfilename:Everything.lng

Support for searching filenames in rar, 7z and zip64 is on my TODO list.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Is it possible to search for content within an archive file

Post by harryray2 »

Thanks...Is it possible to search for text in an a archived file?

For example...search for the string 'test123' within an archived file that contains several other files with different extensions or does it just search for a file that has been archived?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to search for content within an archive file

Post by void »

Filenames only. (for Everything 1.5)
ericgl
Posts: 28
Joined: Tue Apr 28, 2020 7:35 am

Re: Is it possible to search for content within an archive file

Post by ericgl »

Hi David,

Nice to know I can search within archives.
Seems to work for ZIP and RAR files.
Doesn't seem to work with 7Z files, and I have a lot of those.
Can you please add searching within 7zip files as well?

Thanks
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to search for content within an archive file

Post by void »

Everything 1.5.0.1338a adds zip64 support.

7zip support is on my TODO list.
Thank you for the suggestion.
tn_dang
Posts: 1
Joined: Sat Jul 15, 2023 5:42 pm

Re: Is it possible to search for content within an archive file

Post by tn_dang »

void wrote: Thu Feb 16, 2023 7:55 am Everything 1.5.0.1338a adds zip64 support.

7zip support is on my TODO list.
Thank you for the suggestion.
Could you please treat jar files as zip files. Build 1352 cannot find files inside a jar file but if I rename the jar file to become a zip file, Everything can find the files inside a newly renamed zip file.

Thank you for your time and efforts.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to search for content within an archive file

Post by void »

I will trial a change in the next alpha update to treat any file (with a zip footer) as a zip file.

I'll report back here once this is ready for testing.

Thank you for the suggestion.
Thy Grand Voidinesss
Posts: 691
Joined: Wed Jun 01, 2022 5:01 pm

Re: Is it possible to search for content within an archive file

Post by Thy Grand Voidinesss »

void wrote: Thu Jun 10, 2021 9:08 am [...]
Searching for filenames in zip files is possible with container-filename: search function.
[...]
void wrote: Sun Jul 16, 2023 1:29 am I will trial a change in the next alpha update to treat any file (with a zip footer) as a zip file.
[...]
So this would mean that another tick option could be added to the already 4 available ones on the Findbar? And also, but in a distant future, some sort of button for Search Edit?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to search for content within an archive file

Post by void »

This is unrelated to the findbar.

Everything 1.5.0.1353 will now ignore file extensions when gathering properties.

For the best performance, specify an extension filter in your search.

For example:

*.jpg width:>800
*.docx containerfilename:styles.xml
ericgl
Posts: 28
Joined: Tue Apr 28, 2020 7:35 am

Re: Is it possible to search for content within an archive file

Post by ericgl »

Hi David,

Now with v1.5.0.1353a which supports searching inside zip, 7z, apk, etc... - Is it possible to search for only folders within those archives?

For example, if I type d:\downloads\ container-file-name:assets - This will go through all supported archives in the specified folder and find all files and folders within those archives containing the string "assets". But how do I restrict the search to folders only (within the archive/container)?

What I tries thus far:
Adding in the search field: shell-attributes:0x20000000
Adding in the search field: type:"File folder"
Adding in the search field: folder:
Adding in the search field: attrib:D
Replacing container-file-name: with container-folder-name:

None worked. Any solution?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to search for content within an archive file

Post by void »

There's not really any folders, just filenames with paths.

Please try the following search:

container-file-name:/assets/
ericgl
Posts: 28
Joined: Tue Apr 28, 2020 7:35 am

Re: Is it possible to search for content within an archive file

Post by ericgl »

Thanks for the quick reply, David.

Oh, it's that simple...lol.
Well, adding the slashes around the string (kinda) works.
Thanks!
crimzind
Posts: 15
Joined: Sat Oct 14, 2023 4:48 am

Re: Is it possible to search for content within an archive file

Post by crimzind »

I'm not sure if I'm misunderstanding some syntax or something...
I'm on 1.5a, and I'm trying to find any archives (zip, rar, etc.) that contain specific files types in them.

"container-file-name:*.ext" doesn't seem to return any results regardless of what type of file I'm searching for.
"container-file-name" gives me the impression I'd need to specify a specific archive to be searching in, instead of *any* archives, but yeah, I'm just not sure what I might be doing wrong, otherwise.
Last edited by crimzind on Tue Oct 24, 2023 10:33 pm, edited 1 time in total.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to search for content within an archive file

Post by void »

I will add support for wildcards in the next alpha update.

Thank you for bringing this issue to my attention.

Technically, I haven't flagged this function as a "filename"-search so Everything thinks it is a content-search.
Content searches don't support wildcards, unless you use the wildcard: search modifier.



For now, please prefix your search with wildcards:

For example:

wildcards:container-file-name:*.ext



wildcards:
crimzind
Posts: 15
Joined: Sat Oct 14, 2023 4:48 am

Re: Is it possible to search for content within an archive file

Post by crimzind »

That worked, thank you!
Post Reply