# Tool to delete folder.jpg, AlbumArtSmall.jpg, desktop.ini, ...

**URL:** https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061
**Category:** General Discussion
**Created:** [February 6, 2012, 10:04am UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061 "2012-02-06T10:04:05Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 6, 2012, 10:04am UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/1 "2012-02-06T10:04:05Z")

</div>

Some of my album folders have a set of files which I believe is created by Windows Media Player.

_These files are:  
desktop.ini  
AlbumArtSmall.jpg  
AlbumArt\_{7E518F75-1BC4-4CD1-92B4-B349D9E9248B}Large.jpg  
AlbumArt{7E518F75-1BC4-4CD1-92B4-B349D9E9248B}\_Small.jpg  
Folder.jpg_

These files are hidden files and hidden files. I can't see them in the Windows Explorer. But they show up in Mp3tag Albumart Preview Window, and they can't be overwritten by Mp3tag.  
That's anoying, because I have set Mp3tag to store covers as _folder.jpg_, and thw WMP folder.jpg has always 200x200 pixel, which is a bit too small for my liking, and often a completely wrong picture of another album which has only a similar title.

What I do now is: open the folder with 7-Zip, there I delete the files, and after that I run my web sources again to get proper covers.

Can someone show me how to make a tool for Mp3tag which deletes these files automatically?  
At least _Folder.jpg_, _AlbumArtSmall.jpg_ & _desktop.ini_, which have always the same filenames. The other two _AlbumArt\_{...}\_....jpg_ files have always different filenames, so the tool would need some wildcards which i more difficult i guess. Would be ok if these files keep there.

I already open the folder with 7-Zip with a simple tool:  
Path: _C:\Program Files\7-Zip\7zFM.exe_  
Parameter: _"%\_folderpath%_

And it seems that 7-Zip is capable of using command lines. I found an tutorial here which mentions a command to delete files:  
[http://www.dotnetperls.com/7-zip-examples](http://www.dotnetperls.com/7-zip-examples) -\> Example "e" command  
But I can't figure out how to transform this into a command line parameter for Mp3tag.

Using something different than 7-Zip would be also ok. That's just the first idea which came to my mind.

EDIT:  
Or can this be done with the standard Windows CMD Commands?  
I don't know much about that things. Any help appreciated.  
[http://ss64.com/nt/](http://ss64.com/nt/)  
[http://ss64.com/nt/del.html](http://ss64.com/nt/del.html)

---

<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: [February 6, 2012, 11:05am UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/2 "2012-02-06T11:05:38Z")

</div>

> [@pone](#):
>
> Or can this be done with the standard Windows CMD Commands?  
> I don't know much about that things. Any help appreciated.  
> [http://ss64.com/nt/](http://ss64.com/nt/)  
> [http://ss64.com/nt/del.html](http://ss64.com/nt/del.html)

Yes, it can be done.  
You simply create yourself a text file and enter the following:

attrib -h -s _._ /s  
del /s folder.jpg  
del /s albumart\*.jpg  
del /s desktop.ini

then save the text file and rename it with the extension .bat

Execute it and all the files that you do not like should be gone.

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 6, 2012, 11:30am UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/3 "2012-02-06T11:30:21Z")

</div>

> [@ohrenkino](#):
>
> Yes, it can be done.  
> You simply create yourself a text file and enter the following:
> 
> attrib -h -s _._ /s  
> del /s folder.jpg  
> del /s albumart\*.jpg  
> del /s desktop.ini
> 
> then save the text file and rename it with the extension .bat
> 
> Execute it and all the files that you do not like should be gone.

How do I specifie this to a certain folder? Only the files in the folder of current file in Mp3tag should get deleted. I don't see any reference to %\_folderpath% in your code.

---

<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: [February 6, 2012, 12:10pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/4 "2012-02-06T12:10:04Z")

</div>

> [@pone](#):
>
> How do I specifie this to a certain folder? Only the files in the folder of current file in Mp3tag should get deleted. I don't see any reference to %\_folderpath% in your code.

Oh yes:  
please add the following line at the beginning before the attrib command:  
cd %1

The command line should then feature the full path to the batch-file (e.g. mybatch.bat) and hand over the current path:  
c:\myfolder\mybatch %\_path%

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 6, 2012, 12:42pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/5 "2012-02-06T12:42:37Z")

</div>

Perfect. Thank you very much!

For everyone who wants to try that, I have now:

**bat file:**   
Name: C:\Users\<username\>\AppData\Roaming\Mp3tag\delete wmp files.bat  
Code:

```
cd %1
attrib -h -s *.* /s
del /s folder.jpg
del /s albumart*.jpg
del /s desktop.ini

```

**Mp3tag tool:**  
Name: Delete WMP Albumart Files  
Path: C:\Users\<username\>\AppData\Roaming\Mp3tag\delete wmp files.bat  
Parameter: "%\_path%"

\s stand for subfolders, right? I can leave that away to avoid accidental deletion of folder.jpg files form more folders if I accidentally executed the tool from a folder which holds different subfolders with different albums. Is that correct?

---

<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: [February 6, 2012, 12:47pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/6 "2012-02-06T12:47:50Z")

</div>

> [@pone](#):
>
> Perfect. Thank you very much!

Always a pleasure!

> [@pone](#):
>
> \s stand for subfolders, right?...Is that correct?

Yes (although it should be /s).  
Actually: it should not do any harm to set hidden and system files (in the music folder) back to the status of normal files ...  
But that is why it's an optional parameter.

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 6, 2012, 12:55pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/7 "2012-02-06T12:55:05Z")

</div>

Another releated question:

Is there a command which lists all folder.jpg files with the attribute "hidden" in all subfolders of my music directory?

EDIT:  
Allright, I'm getting slowly into this CMD thing. This command does the job:  
dir folder.jpg /a:h /b /s

Next question:  
Is there a command to load all the directories of these listed files into Mp3tag? Or, if not possible, the jpg files themselve (for that, I would allow jpg files for Mp3tag via File\>Options\>Tags\>Restrict incoming files to:...).

More question:  
Why %\_path% and not %\_folderpath%?  
Is there a way to display the deleted files in Window's Recycle Bin (Papierkorb)?

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 6, 2012, 5:20pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/8 "2012-02-06T17:20:07Z")

</div>

> [@pone](#):
>
> ... Is there a command to load all the directories of these listed files into Mp3tag? Or, if not possible, the jpg files themselve (for that, I would allow jpg files for Mp3tag via File\>Options\>Tags\>Restrict incoming files to:...).

Output from DOS commands can be redirected to text file using the right angle bracket, for example ...  
`DIR >%TEMP%\dirout.txt`  
will create a text file in the user's temp folder  
`DIR >%USERPROFILE%\Desktop\dirout.txt`  
will create a text file on the user's desktop  
`DIR >>dirout.txt`  
will append output to existing text file.

```auto
DIR /A:-D/B/S/-P "M:\My Music\*.jpg" >"%USERPROFILE%\Desktop\List of image files.txt"

CD /D "M:\My Music\" & DIR /A:-D/B/S/-P *.jpg;*.png;*.bmp;*.gif >"%USERPROFILE%\Desktop\List of image files.txt"

```

So far at this moment ... will see how to get only the folderpathes of the folders, which contain image files, into text file, so that Mp3tag can open the text file and load all related files from these folders.

DD.20110206.1920.CET

More to play with ...

```auto
@FOR /F "usebackq tokens=*" %p IN (@DIR /A:-D/B/S/-P *.jpg;*.png;*.bmp;*.gif) DO @ECHO %~dp%~pp>>"%USERPROFILE%\Desktop\List of folders.txt.m3u"

```

... will give a list of folders (sorry, not unique entries), which can be load by Mp3tag.

And keep in mind, that there are still problems with special characters like Umlaut characters between the limited DOS codepage and the windows unicode interface.

DD.20120206.2020.CET

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 6, 2012, 5:33pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/9 "2012-02-06T17:33:21Z")

</div>

> [@pone](#):
>
> ... Is there a way to display the deleted files in Window's Recycle Bin (Papierkorb)?

No.  
The DOS command DEL cannot delete into the Recycle Bin.  
Once the DEL command has deleted a file, you can assume, that the file's data is lost forever.

Try Recycle.exe from ...  
[http://ss64.net/westlake/nt/](http://ss64.net/westlake/nt/)

DD.20120206.1933.CET

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 6, 2012, 5:45pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/10 "2012-02-06T17:45:35Z")

</div>

> [@DetlevD](#):
>
> Output from DOS commands can be redirected to text file using the right angle bracket, for example ...  
> _DIR \>%TEMP%\dirout.txt_  
> will create a text file in the user's temp folder  
> _DIR \>%USERPROFILE%\Desktop\dirout.txt_  
> will create a text file on the user's desktop  
> _DIR \>\>dirout.txt_  
> will append output to existing text file.
> 
> DIR /A:-D/B/S/-P "M:\My Music\*.jpg" \>"%USERPROFILE%\Desktop\List of image files.txt"
> 
> So far at this moment ... will see how to get only the folderpathes of the folders, which contain image files, into text file, so that Mp3tag can open the text file and load all related files from these folders.
> 
> DD.20110206.1920.CET

Thanks

dir folder.jpg /a:h /b /s \>dirout.txt  
give me a list of all pathes of hidden folder.jpg.  
getting folderpathes without filename from that is easy with notepad++, where I can use regular expressions.  
~~But how do I load this folders into Mp3tag?  
~~When I rename the .txt file into .m3u, I can load all directories into Mp3tag.  
~~Perfect!  
~~But these are too much folders to care for new covers for all of them. I guess I will delete all albumart\*.jpg files and change the attribute of the folder.jpg files.  
Is it save to delete all desktop.ini files in my music folders?

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 6, 2012, 7:02pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/11 "2012-02-06T19:02:15Z")

</div>

> [@pone](#):
>
> ... Is it save to delete all desktop.ini files in my music folders?

I think this is a question of personal taste and the look and feel how to use the Windows user interface.  
Perhaps the folders will loose their window-like appearance, icons and such things???  
I do not know for sure, because I banned such visual distractions from my machine since years.  
There are a few folders, which contain a desktop.ini, but not in the data area, where I want speedy access and detailed overview.  
I did just a search scan on my machine and detected about 300 desktop.ini files, not so much at all, mostly located in system temporary folders.

Hmm, did you speak of not to see all files in the explorer view?  
This is a question of setting up the Windows explorer from simple user view to expert view.

[german]  
Öffne im Explorer den Dialog "Explorer/Extras/Ordneroptionen/Ansicht/Dateien und Ordner".  
Ändere die Einstellungen ...  
 Inhalte von Systemordnern anzeigen  
[_] Erweiterungen bei bekannten Dateitypen ausblenden  
[_] Geschützte Systemdateien ausblenden  
Versteckte Dateien und Ordner  
(X) Alle Dateien und Ordner anzeigen  
Vollständigen Pfad in der Adresszeile anzeigen  
Vollständigen Pfad in der Titelleiste anzeigen ???  
Achtung ...  
Wichtige Entscheidung treffen, ob diese eine Ordneransicht für alle Ordner übernommen werden soll.  
Schaltfläche "Für alle übernehmen" drücken oder nicht.

Ändere Explorer Ansicht: zeige Details, zeige Statusleiste.  
Rechtsklick auf Spaltenüberschrift: Attribute einschalten.  
[/german]

Good luck!

DD.20120206.2103.CET

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 6, 2012, 7:24pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/12 "2012-02-06T19:24:27Z")

</div>

i know that windows options. this was more a genereal case of getting off some files i don't need, and most of all: avoiding the problem that Mp3Tag won't overwrite hidden folder.jpg files.

i just did it  
deleted all desktop.ini & albumart\*.jpg

and for future hidden folder.jpg's i have now the tool for quick deleting.

thanks for your help ohrenkino & DetelevD!

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 6, 2012, 7:42pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/13 "2012-02-06T19:42:56Z")

</div>

Hm, jetzt seh ich all dies thumb.db Datei. Die will ich aber nicht löschen.

**attrib +h +s thumbs.db /s**

Stellt das den Normalzustand wieder her?

EDIT:  
ups, i switched to German.  
anyway. I performed that command. Can't do any damage i think.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 6, 2012, 7:48pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/14 "2012-02-06T19:48:40Z")

</div>

> [@pone](#):
>
> Hm, jetzt seh ich all dies thumb.db Datei. Die will ich aber nicht löschen. **attrib +h +s thumbs.db /s** Stellt das den Normalzustand wieder her?

Set the hidden attribute only for the Thumbs.db.

DD.20120206.2149.CET

Not correct.  
Set the hidden and system attributes for the Thumbs.db should be right.

DD.20120206.2158.CET

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 6, 2012, 7:51pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/15 "2012-02-06T19:51:18Z")

</div>

> [@DetlevD](#):
>
> Set the hidden attribute only for the Thumbs.db.
> 
> DD.20120206.2149.CET

Ok, so I set the system attribute back with:  
**attrib -s thumbs.db /s**

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 6, 2012, 7:54pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/16 "2012-02-06T19:54:42Z")

</div>

> [@pone](#):
>
> Ok, so I set the system attribute back with:  
> **attrib -s thumbs.db /s**

Sorry I was too fast with my advise.  
Set Hidden and System attributes for the Thumbs.db.

DD.20120206.2155.CET

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 6, 2012, 7:59pm UTC](https://community.mp3tag.de/t/tool-to-delete-folder-jpg-albumartsmall-jpg-desktop-ini/13061/17 "2012-02-06T19:59:22Z")

</div>

> [@DetlevD](#):
>
> Sorry I was too fast with my advise.  
> Set Hidden and System attributes for the Thumbs.db.
> 
> DD.20120206.2155.CET

ok, i will set it back again 😃
