Possible to automate append / prepend file name with folder name?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Dazzer
Junior Member
Junior Member
Posts: 87
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Possible to automate append / prepend file name with folder name?

Post by *Dazzer »

Hi guys,

Picture this:

I have a folder called "Hey Jude"

The folder contains the following files:

bass.wav
drums.wav
guitar.wav
piano.wav
vocals.wav

I want to somehow to automate the process so that the files are renamed:

HeyJude - bass.wav
HeyJude - drums.wav
HeyJude - guitar.wav
HeyJude - piano.wav
HeyJude - vocals.wav

Does anyone have an idea how i could this?

So i mean that the files automatically get the prefix of the folder name they're in? (i know how to do a normal multi-rename)

Thanks!
User avatar
Dalai
Power Member
Power Member
Posts: 9945
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Possible to automate append / prepend file name with folder name?

Post by *Dalai »

  1. Mark/select the files
  2. Launch the MRT via Ctrl+M
  3. Use this rename mask:

    Code: Select all

    [P] - [N]
  4. Check the preview in the "New name" column
  5. Press Start
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Dazzer
Junior Member
Junior Member
Posts: 87
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Possible to automate append / prepend file name with folder name?

Post by *Dazzer »

Thanks!

And to expand it a bit further: imagine i have 10 folders, all of which contain files that need to be prepended with their folder name, is there a way to run a batch over many folders in one action, without going inside each folder to perform the multi-rename?
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Possible to automate append / prepend file name with folder name?

Post by *Gral »

Select these 10 folders and apply Branch View on selected directory and select all files prior to invoke Mult Rename Tool.
Dazzer
Junior Member
Junior Member
Posts: 87
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Possible to automate append / prepend file name with folder name?

Post by *Dazzer »

Ah-ha, thanks, that works!
Post Reply