DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Grammar Nazi Mass Rename  (Read 11,319 times)

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
IDEA: Grammar Nazi Mass Rename
« on: January 26, 2012, 12:10 AM »
I have recently made quite a number of purchases of games at GOG.com and downloaded the games + all additional content including soundtracks and wallpapers etc. I am bothered by the file naming scheme that GOG uses and would like a way to automatically traverse all subdirectories of a specified directory to rename the files.

Unwanted filename examples (with a few good ones in there):

[attachimg=#]

Wanted filename examples:

[attachimg=#]

Basically, I want to replace underscores (_) with spaces ( ) and capitalize the first letter of each word.

But! Some words are acronyms e.g. HoMM or BG and I don't want those to be replaced with e.g. Homm or Bg. However, since GOG usually uses lowercase letters for their filenames anyway, I'm okay with it leaving a lowercase acronym all lowercase (but still capitalizing the first letter).

Or in other words, Make the first letter capitalized and don't worry about the case of any other letters in a word.

kilele

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 243
Re: IDEA: Grammar Nazi Mass Rename
« Reply #1 on: January 26, 2012, 12:16 AM »
_
« Last Edit: January 26, 2012, 12:30 AM by kilele »

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: IDEA: Grammar Nazi Mass Rename
« Reply #2 on: January 26, 2012, 12:19 AM »
Just in case no coding snack Métamorphose is probably good option. I tested and used version 2.

remio72

  • Participant
  • Joined in 2012
  • *
  • Posts: 1
Re: IDEA: Grammar Nazi Mass Rename
« Reply #3 on: February 21, 2012, 07:20 PM »
I made a program that does this you can get it from my website. (its called Mass File Renamer)

DyNama

  • Are you a good witch or a bad witch?
  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 73
Re: IDEA: Grammar Nazi Mass Rename
« Reply #4 on: March 30, 2012, 03:32 AM »
am i too late? i like a program called Bulk Rename Utility: http://www.bulkrenameutility.co.uk/Main_Intro.php
« Last Edit: March 30, 2012, 03:34 AM by DyNama »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: IDEA: Grammar Nazi Mass Rename
« Reply #5 on: March 30, 2012, 04:05 AM »
No you're not too late. Thanks for the suggestions everyone. I got distracted since asking this question and haven't taken the time to try anything yet. But I appreciate having the info here for when I do finally get back to it. :-[

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: IDEA: Grammar Nazi Mass Rename
« Reply #6 on: March 30, 2012, 04:09 AM »
am i too late? i like a program called Bulk Rename Utility: http://www.bulkrenameutility.co.uk/Main_Intro.php

+1


A DC thread on it:

http://www.donationcoder.com/forum/index.php?topic=30142.0

It's pretty robust... Includes regular expressions even.

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

DyNama

  • Are you a good witch or a bad witch?
  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 73
Re: IDEA: Grammar Nazi Mass Rename
« Reply #7 on: March 30, 2012, 09:55 PM »
i learned a little regex just to use it in BRU!

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: IDEA: Grammar Nazi Mass Rename
« Reply #8 on: March 31, 2012, 02:10 AM »
i learned a little regex just to use it in BRU!


Regex is apotheosis for computers. It gives you god-like power.

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Original address: https://www.donationcoder.com/forum/index.php?topic=29723.0