Search within archives

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
obeg
Junior Member
Junior Member
Posts: 43
Joined: 2006-09-28, 09:20 UTC
Location: Sweden

Search within archives

Post by *obeg »

The ordinary search within archives works like as I expect.

I now have a special need that I want to know if anyone can help me with.
I have a big number of files that are zip-files, but they are without extension.
Inside them are logfiles that over 100 MB big, that I want to find and delete.

Browsing them with 'CTRL+PG DOWN' or 'ENTER' works fine

If i rename the files to *.zip, then it works flawlessly, it is just to check "Search archives" and go.

But renaming all files to *.zip, do the search, delete unwanted files and then remove extension again is no option. Do you have any other ideas?
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Post by *jinsight »

'CTRL+PG DOWN' or 'ENTER' work fine here without the extension or, even, an incorrect extension.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

obeg,
There is an INI option SearchInFiles in Configuration section of wincmd.ini that allows specifying additional extensions of archive files:
TOTALCMD.chm section 4.b wrote:SearchInFiles=
Here you can specify additional archive types in which you want to search with the Search function. Example: SearchInFiles=*.EXE *.JAR
I think your goal should be achieved using *. mask for this option.
User avatar
obeg
Junior Member
Junior Member
Posts: 43
Joined: 2006-09-28, 09:20 UTC
Location: Sweden

Post by *obeg »

MVV wrote: I think your goal should be achieved using *. mask for this option.
Yes, this was what I was looking for. Unfortunately when I try it, it works for specifying additional extensions but not without extension like *.
Also tried with "*." and '*.'
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Try

Code: Select all

SearchInFiles=*.*
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ZoSTeR wrote:Try

Code: Select all

SearchInFiles=*.*
This may slow process down if TC will try to check every file for its own archive types and plugins...
obeg wrote:Unfortunately when I try it, it works for specifying additional extensions but not without extension like *.
Also tried with "*." and '*.'
I can confirm that it doesn't work for files w/o extension. I think it should be reported as a bug.
My setting was:

Code: Select all

SearchInFiles=*.*_ *.
(first entry is for single-file Microsoft CAB archives from e.g. old Windows distributives)
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

MVV wrote:
obeg wrote:Unfortunately when I try it, it works for specifying additional extensions but not without extension like *.
[...]
I can confirm that it doesn't work for files w/o extension. I think it should be reported as a bug.
In Windows file without extension is a file without a dot, isn't it? The mask *. contains a dot. I guess for such kind of search RegEx should be used, but the parameter SearchInFiles doesn't seem to support it.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

DrShark wrote:In Windows file without extension is a file without a dot, isn't it? The mask *. contains a dot.
Well, it sounds logica in case of simple wildcard check.
However it would be nice if TC could match files w/o extension using *. mask here (i.e. assume that file w/o any dots ends with a dot). Note that it already works so in regular Select Group (Num+) function.
In Windows
BTW, are there any systems that separate extension from filename using dot but where file w/o extension is a file with a dot? :)
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

MVV wrote:However it would be nice if TC could match files w/o extension using *. mask here (i.e. assume that file w/o any dots ends with a dot). Note that it already works so in regular Select Group (Num+) function.
It also works in Find files "Search for:" field, so from this point it can be considered as a bug with SearchInFiles parameter.

Personally I would prefer to have a distinction between * (mean of any name) and *.* (mean of any name with extension) requests, so the search request
* | *.*
could search for files without extension. It can be suggested as a new option for TC, but it shouldn't be enabled by default because that way it will ruin a lot of already made search templates.

Alternative is the my above suggestion to add a RegEx support for SearchInFiles parameter.
BTW, are there any systems that separate extension from filename using dot but where file w/o extension is a file with a dot? :)
I didn't use all of the operating systems, maybe some OS use some other character than a dot to define a file extension...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
obeg
Junior Member
Junior Member
Posts: 43
Joined: 2006-09-28, 09:20 UTC
Location: Sweden

Post by *obeg »

This may slow process down if TC will try to check every file for its own archive types and plugins...
Of course it would, but it would only be used when needed.

I guess it could be considered a bug, but then a very minor one with possible side effects as above and very limited use. If it hadn't been for my special need I would not have thought it useful. :)

Thanks for the help!
Post Reply