Option to exclude certain extensions when creating CRC checksums?
Moderators: Hacker, petermad, Stefan2, white
Option to exclude certain extensions when creating CRC checksums?
Hello!
I'd like to have an option to exclude certain filetypes when creating checksums of folders with files. Use case: music with album art. I'd like the possibility to create checksums of only music files, and not album art files. It would be something like adding a bar in scanner options window with excluding filetypes like this:
Excluded: .jpg .png .webp
So everything else inside would be scanned and added in checksum file, except excluded files.
I'd like to have an option to exclude certain filetypes when creating checksums of folders with files. Use case: music with album art. I'd like the possibility to create checksums of only music files, and not album art files. It would be something like adding a bar in scanner options window with excluding filetypes like this:
Excluded: .jpg .png .webp
So everything else inside would be scanned and added in checksum file, except excluded files.
Re: Option to exclude certain extensions when creating CRC checksums?
In the meantime, is it possible to link two actions in one button or action ?
Select *.jpg;*.png;*.webp and then Invert Selection
Select *.jpg;*.png;*.webp and then Invert Selection
Re: Option to exclude certain extensions when creating CRC checksums?
The way I can see workable so far:
1. Configuration - Options - Ignore lists [check] > *.jpg;*.png;*.webp
2. Calculate the checksum for the folders in question (*.jpg;*.png;*.webp won't be included).
I support the separate exclusion option [checkbox, field, and list] for the checksum operations.
1. Configuration - Options - Ignore lists [check] > *.jpg;*.png;*.webp
2. Calculate the checksum for the folders in question (*.jpg;*.png;*.webp won't be included).
I support the separate exclusion option [checkbox, field, and list] for the checksum operations.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: Option to exclude certain extensions when creating CRC checksums?
2hlloyge
You may be interested in such a button:
RHash supports many algorithms, but so far without Blake 3. However, on the same algorithms, it is performed much faster than TC.
You may be interested in such a button:
Code: Select all
TOTALCMD#BAR#DATA
%ComSpec% /q/c for %d in
("%S") do if exist "%%~d\" "%%COMMANDER_PATH%%\Utils\RHash\rhash.exe" "%%~d\*.*" -i -p"%%{sha1} *%%f\n" -o "%%~d\%%~d.sha" --exclude=jpg,png,webp
wcmicons.dll,61
Calculate SHA for selected folders without jpg, png and webp
1
Overquoting is evil! 👎
Re: Option to exclude certain extensions when creating CRC checksums?
Interesting tool. Thanks for sharing.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: Option to exclude certain extensions when creating CRC checksums?
Hi,
Another way: in selection ( Num + ) type:
Add *. if you want to ignore sub-directory selection
(and save it for next usage)
I've been using TC for 19 years, but I just discovered that we can chain several cm_ commands in one line.
Shame on me
I try some other solutions but I couldn't put this command on a button, even with cm_SpreadSelection or cm_Select 
(i.e select *.jpg *.png *.webp and then reverse selection does not works)
Another way: in selection ( Num + ) type:
Code: Select all
* | *.jpg *.png *.webp
Code: Select all
* | *.jpg *.png *.webp *.
I've been using TC for 19 years, but I just discovered that we can chain several cm_ commands in one line.
Shame on me


(i.e select *.jpg *.png *.webp and then reverse selection does not works)
Re: Option to exclude certain extensions when creating CRC checksums?
It could be done by a different but still similar way (using search instead of selection):
Code: Select all
[searches]
musiccrc_SearchFor=* | *.jpg *.png *.webp
musiccrc_SearchIn=d:\MyMusic
musiccrc_SearchText=
musiccrc_SearchFlags=0|007002010021||||||||22220|0000|||
Code: Select all
step 1. Search for:* | *.jpg *.png *.webp
step 2. Search in:d:\MyMusic
step 3. "Advanced" tab - "Attributes" [+] {checked} - "Directory" [ ] {unckecked}
step 3. "Load/Save" tab - "Save" button > opt for name "musiccrc" upon saving
Code: Select all
[em_test_music_crc]
cmd=loadsearch=musiccrc
Code: Select all
TOTALCMD#BAR#DATA
em_test_music_crc
wciconex.dll
Music_crc_test
10029
Then the CRC could be calculated as usual.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: Option to exclude certain extensions when creating CRC checksums?
You're welcome. I still have the old button for the selected files:
Code: Select all
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\RHash\rhash.exe -i -p"%{sha1} *%f\n"
--file-list="%UL" -o "%B.sha"
wcmicons.dll,61
Calculate SHA for selected files
1
The request concerns files only in the selected directories. The selection of files in the active panel doesn't affect this in any way.
Overquoting is evil! 👎
Re: Option to exclude certain extensions when creating CRC checksums?
I am so sorry I neglected this thread, to be honest, I forgot abut it.Fla$her wrote: 2023-04-30, 15:37 UTC 2hlloyge
You may be interested in such a button:RHash supports many algorithms, but so far without Blake 3. However, on the same algorithms, it is performed much faster than TC.Code: Select all
TOTALCMD#BAR#DATA %ComSpec% /q/c for %d in ("%S") do if exist "%%~d\" "%%COMMANDER_PATH%%\Utils\RHash\rhash.exe" "%%~d\*.*" -i -p"%%{sha1} *%%f\n" -o "%%~d\%%~d.sha" --exclude=jpg,png,webp wcmicons.dll,61 Calculate SHA for selected folders without jpg, png and webp 1
Your button works, I set it up to make sha256 files, and it's good.
My workflow is to select folder and make sha256 in that folder after calculation. But there is one more thing that TC does, and that's making linux compatible sha256 files, and that's crucial for me, as all my files (and music) is stored on linux-based storage.
Re: Option to exclude certain extensions when creating CRC checksums?
2hlloyge
Add --utf8 to the end of the parameters.
The problem will only be in the absence of a BOM signature, i.e. there will be no UTF-8 encoding for names in the ASCII range.
Add --utf8 to the end of the parameters.
The problem will only be in the absence of a BOM signature, i.e. there will be no UTF-8 encoding for names in the ASCII range.
Overquoting is evil! 👎