# batch file to check for missing covers

**URL:** https://community.mp3tag.de/t/batch-file-to-check-for-missing-covers/11448
**Category:** General Discussion
**Created:** [January 15, 2011, 4:59pm UTC](https://community.mp3tag.de/t/batch-file-to-check-for-missing-covers/11448 "2011-01-15T16:59:04Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 15, 2011, 4:59pm UTC](https://community.mp3tag.de/t/batch-file-to-check-for-missing-covers/11448/1 "2011-01-15T16:59:04Z")

</div>

I want to use batch files to check my folders for missing covers and create a playlist of all these folders.

For a simple folder tree with no sub folders

root  
-album1  
-album2  
...

I figured out this code:

```
@echo off
IF EXIST no_covers.m3u DEL no_covers.m3u
FOR /D %%A IN (*.*) DO (
IF NOT EXIST %%~fA\folder.jpg echo %%~fA%>>no_covers.m3u)

```

Now I need a batch file that searches all sub folders and only checks for folder.jpg files in folders that also contain audio files because I also have some empty folders in the folder tree.

root  
-artist1  
---album1  
-artist2  
--album1  
--album2

Can anyone help?

---

_[View the full topic](https://community.mp3tag.de/t/batch-file-to-check-for-missing-covers/11448)._
