RF help with mass rename of M$ update files

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DRP535
Senior Member
Senior Member
Posts: 301
Joined: 2003-03-03, 11:25 UTC

RF help with mass rename of M$ update files

Post by *DRP535 »

You know how when you download standalone update patch files from Microsoft, they come appended with a massive long random string before the .exe at the end? What would be the command in the multi-rename tool to be be able to delete all these appended random string characters from the end of the file in a batch process?

In my case, the vast majority of the files end with -enu_<massive long meaningless string of junk here>.exe
User avatar
Dalai
Power Member
Power Member
Posts: 9387
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

This string is NOT random at all! It's always the SHA-1 checksum of this particular file.

If you really want to remove them (I wouldn't do it), you can use something like this:
Search for:

Code: Select all

_[a-f0-9]{40}\.
Replace with:

Code: Select all

.
(a single dot)
[X] RegEx

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply