# batch operation

**URL:** <https://community.mp3tag.de/t/batch-operation/18552>\
**Category:** Support\
**Created:** [December 27, 2016, 3:40am UTC](https://community.mp3tag.de/t/batch-operation/18552 "2016-12-27T03:40:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![fpefpe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/71c47a/32.png) [@fpefpe](https://community.mp3tag.de/u/fpefpe)\
**Post date:** [December 27, 2016, 3:40am UTC](https://community.mp3tag.de/t/batch-operation/18552/1 "2016-12-27T03:40:25Z")

</div>

Hello -- I would like to update around 70 cd with cover art -- Is there a way that I can  
run mp3tag from the command line with the folder and the jpg to use to update all the  
files in that folder?

the 70+ cd contain contain over 700 tracks

thanks

fpe

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [December 27, 2016, 5:17am UTC](https://community.mp3tag.de/t/batch-operation/18552/2 "2016-12-27T05:17:58Z")

</div>

There are no command line options in Mp3Tag for this purpose.  
But MP3Tag is made to do mass-treatments like this with actions from the GUI.  
For your purpose there exists an action type "Import cover from file".

What you have to do to use it depends on your folder structure and the names of the cover-files.

---

<div class="post-metadata">

**Author:** ![fpefpe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/71c47a/32.png) [@fpefpe](https://community.mp3tag.de/u/fpefpe)\
**Post date:** [December 27, 2016, 1:27pm UTC](https://community.mp3tag.de/t/batch-operation/18552/3 "2016-12-27T13:27:20Z")

</div>

Thanks for the info

---

<div class="post-metadata">

**Author:** ![fpefpe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/71c47a/32.png) [@fpefpe](https://community.mp3tag.de/u/fpefpe)\
**Post date:** [December 27, 2016, 6:04pm UTC](https://community.mp3tag.de/t/batch-operation/18552/4 "2016-12-27T18:04:28Z")

</div>

> [@poster](#):
>
> There are no command line options in Mp3Tag for this purpose.  
> But MP3Tag is made to do mass-treatments like this with actions from the GUI.  
> For your purpose there exists an action type "Import cover from file".
> 
> What you have to do to use it depends on your folder structure and the names of the cover-files.

Hello -- I looked at this and it seems to work for each cd -- so I can fetch the cover on a per  
cd -- but like I said, I have 70 of it there a way to create a loop so tht cd 1 get cover 1 -- etc up tp cd 70 gets cover 70 ?

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [December 27, 2016, 7:58pm UTC](https://community.mp3tag.de/t/batch-operation/18552/5 "2016-12-27T19:58:11Z")

</div>

> [@fpefpe](#):
>
> Hello -- I looked at this and it seems to work for each cd -- so I can fetch the cover on a per  
> cd -- but like I said, I have 70 of it there a way to create a loop so tht cd 1 get cover 1 -- etc up tp cd 70 gets cover 70 ?

This works for all CDs under certain circumstances.  
How is your folder structure?  
Do the cover-files lie in a folder with the music-files?  
Do the names of the cover-files have a certain naming pattern, depending on tags?

Preferably you give an example.

---

<div class="post-metadata">

**Author:** ![fpefpe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/71c47a/32.png) [@fpefpe](https://community.mp3tag.de/u/fpefpe)\
**Post date:** [December 27, 2016, 9:38pm UTC](https://community.mp3tag.de/t/batch-operation/18552/6 "2016-12-27T21:38:44Z")

</div>

> [@poster](#):
>
> This works for all CDs under certain circumstances.  
> How is your folder structure?  
> Do the cover-files lie in a folder with the music-files?  
> Do the names of the cover-files have a certain naming pattern, depending on tags?
> 
> Preferably you give an example.

Hello – Thanks for your help –

the mp3 are in a parent folder say named

mp3

the subfolders are in the form

music n

where n is 1 to 70 – each music folder contains the mp3 files – and  
the number of mp3 vary from folder to folder

the covers are in a folder called “covers” and jpg’s are  
numbered 1 to 70

I can rename the files to anything that makes this process simpler, or I  
can write my own scripts to copy the covers in the music folders

thanks again

fpe

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 27, 2016, 9:46pm UTC](https://community.mp3tag.de/t/batch-operation/18552/7 "2016-12-27T21:46:43Z")

</div>

> [@fpefpe](#):
>
> ...  
> I can rename the files to anything that makes this process simpler, or I  
> can write my own scripts to copy the covers in the music folders
> 
> thanks again
> 
> fpe

If you move the covers to the corresponding music folders, you can use the

Format string: \*.jpg

for the filename to embed the first jpg file from the folder.

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [December 28, 2016, 6:21am UTC](https://community.mp3tag.de/t/batch-operation/18552/8 "2016-12-28T06:21:24Z")

</div>

> [@fpefpe](#):
>
> music n
> 
> where n is 1 to 70 – each music folder contains the mp3 files – and  
> the number of mp3 vary from folder to folder
> 
> the covers are in a folder called “covers” and jpg’s are  
> numbered 1 to 70

So I understand you right that i.e. you want all mp3-files in the folder "music 1" to have the file 1.jpg in the folder "covers" embedded?

This should work:  
Your Cover folder i.e. is d:\covers

Load all mp3-files from the mp3-folder including the subfolders to Mp3Tag.  
Mark all files and define an action.

Action-type: Import Cover from file  
Format string for image filename:  
d:\covers$trim($right(%\_directory%,2)).jpg

---

<div class="post-metadata">

**Author:** ![fpefpe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/71c47a/32.png) [@fpefpe](https://community.mp3tag.de/u/fpefpe)\
**Post date:** [December 29, 2016, 11:51pm UTC](https://community.mp3tag.de/t/batch-operation/18552/9 "2016-12-29T23:51:49Z")

</div>

> [@ohrenkino](#):
>
> If you move the covers to the corresponding music folders, you can use the
> 
> Format string: \*.jpg
> 
> for the filename to embed the first jpg file from the folder.

Hello -- thanks for this info -- worked like a champ !!

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [January 19, 2026, 2:52pm UTC](https://community.mp3tag.de/t/batch-operation/18552/10 "2026-01-19T14:52:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
