Auto append CRC checksum in the file name

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Auto append CRC checksum in the file name

Post by *DarkRuleR »

Hi!

Code: Select all

30.03.10 Added: CRC check: Support CRC checksums directly in the file names, in the form filename[1234ABCD].ext
Another example of the little jewels found in the new version.
:)

It would be great if there was an extra option in "Create CRC-checksum file" that would auto append the CRC checksum to the file.
What do you think???

Greetz,

DR...
#106383 Windows 10 Pro 64-bit
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Support ++
File should be renamed by appending CRC checksum of current selected mode.

But this will work only if all modes (SFV, MD5, SHA1) are supported by CRC check function.

Up to now just CRC32 is supported :(
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I didn't add this so far because I fear that people breakt their programs by changing the names, so the files are no longer found. Therefore external checksum files should be used whenever possible. Also I have never seen files with MD5 or even SHA1 checksums in the name - the name would be extremely long...
Author of Total Commander
https://www.ghisler.com
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

As comment ?

Post by *Clo »

2ghisler(Author)

:) Good evening,

• Maybe the option could add the CRC as a (descript.ion) comment (info-text) ? Doing so, on one hand, the user could see the CRC and,
on the other hand, the names themselves would remain unchanged, no matter which lenght the CRC is…
- Just a thought.

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Post by *DarkRuleR »

ghisler(Author) wrote:I didn't add this so far because I fear that people breakt their programs by changing the names, so the files are no longer found. Therefore external checksum files should be used whenever possible. Also I have never seen files with MD5 or even SHA1 checksums in the name - the name would be extremely long...
A "Calculate CRC Checksum and copy to clipboard" option could solve this?
(and please also add the two brackets)

Greetz,

DR...
#106383 Windows 10 Pro 64-bit
bfu
Junior Member
Junior Member
Posts: 15
Joined: 2009-10-05, 14:17 UTC
Location: Czech Republic

Post by *bfu »

Support++ for some secure form of the feature (CRC only).

Nowadays I use some command-line utilities that generate CRC and copy it to clipboard - than I do manual file rename.

(My button bar item: cmd /c "hoc.exe -crc32 %S |replacestr.exe ":" "" |winclip -c -w" :D
#208434
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Re: As comment ?

Post by *fenix_productions »

Support for an idea but proper way is the problem.

2Clo
Clo wrote:• Maybe the option could add the CRC as a (descript.ion) comment (info-text) ?
This solution would be nice but comments do not support Unicode file names.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
Shosho
Junior Member
Junior Member
Posts: 6
Joined: 2017-10-10, 12:59 UTC

Re: Auto append CRC checksum in the file name

Post by *Shosho »

Another possibility to include CRC32 (or any other checksum) in filename is to have LotsOfHashes content plugin installed and to use the following pattern in multi-rename tool

Code: Select all

[N][[=lotsofhashes.CRC32.Uppercase]]
Rekrul
Junior Member
Junior Member
Posts: 69
Joined: 2007-11-04, 21:40 UTC

Re: Auto append CRC checksum in the file name

Post by *Rekrul »

How about adding a CRC parameter to the Multi-Rename function? For example [SFV].

This could be handled in two ways;

1. The CRC is calculated for each file as it goes. Maybe it displays a warning the first time that the process can take a long time if there are large selected with a checkbox not to show the message again.

2. If an SFV file exists with the name of the current working directory, TC would look inside that file to find the CRC values. Or maybe it could allow the user to select the SFV file, similar to how "Load names from file" works.

The two methods could optionally be combined; TC could look inside an SFV file if it exists, rename whatever files it finds listed inside and generate CRCs for the rest on the fly.

By separating the creation of SFV files from renaming the files, it would prevent people from accidentally renaming important files and screwing something up. They would have to intentionally tell the program to rename then files to add the CRC value to the name.
Post Reply