Search within archives
Moderators: Hacker, petermad, Stefan2, white
Search within archives
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?
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?
obeg,
There is an INI option SearchInFiles in Configuration section of wincmd.ini that allows specifying additional extensions of archive files:
There is an INI option SearchInFiles in Configuration section of wincmd.ini that allows specifying additional extensions of archive files:
I think your goal should be achieved using *. mask for this option.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
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...ZoSTeR wrote:TryCode: Select all
SearchInFiles=*.*
I can confirm that it doesn't work for files w/o extension. I think it should be reported as a bug.obeg wrote:Unfortunately when I try it, it works for specifying additional extensions but not without extension like *.
Also tried with "*." and '*.'
My setting was:
Code: Select all
SearchInFiles=*.*_ *.
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.MVV wrote:I can confirm that it doesn't work for files w/o extension. I think it should be reported as a bug.obeg wrote:Unfortunately when I try it, it works for specifying additional extensions but not without extension like *.
[...]
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Well, it sounds logica in case of simple wildcard check.DrShark wrote:In Windows file without extension is a file without a dot, isn't it? The mask *. contains a dot.
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.
BTW, are there any systems that separate extension from filename using dot but where file w/o extension is a file with a dot?In Windows

It also works in Find files "Search for:" field, so from this point it can be considered as a bug with SearchInFiles parameter.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.
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.
I didn't use all of the operating systems, maybe some OS use some other character than a dot to define a file extension...BTW, are there any systems that separate extension from filename using dot but where file w/o extension is a file with a dot?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Of course it would, but it would only be used when needed.This may slow process down if TC will try to check every file for its own archive types and plugins...
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!