# Using MP3TAG with conditional logic - Windows 10

**URL:** https://community.mp3tag.de/t/using-mp3tag-with-conditional-logic-windows-10/48379
**Category:** Support
**Created:** [March 30, 2020, 8:36pm UTC](https://community.mp3tag.de/t/using-mp3tag-with-conditional-logic-windows-10/48379 "2020-03-30T20:36:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cathcam](https://community.mp3tag.de/user_avatar/community.mp3tag.de/cathcam/32/4948_2.png) [@cathcam](https://community.mp3tag.de/u/cathcam)
#### Post date: [March 30, 2020, 8:36pm UTC](https://community.mp3tag.de/t/using-mp3tag-with-conditional-logic-windows-10/48379/1 "2020-03-30T20:36:06Z")

</div>

I have a large library of music files, some 24k and growing weekly as I digitize more albums and do research for my [ctproduced.com](http://ctproduced.com) website.

It turns out that the music system I use to stream the music in the house honors the ARTISTSORT tag, if present and sorts the artist differently if found.

I tried pointing MP3TAG at the whole library to then sort via the ARTISTSORT column and clear those that have it. After about 3,500 files it ground to a halt.

Can anyone suggest how to use MP3TAG conditionally to remove the tag if it is present?

I'd like to avoid rewriting ALL files with a blank ARTISTSORT tag as that would create a massive problem with creating "new" files for backup, so even if MP3TAG could load 24k files at one time, and write them back out, this would be a bad idea.

I use Windows 10, so a .bat file or powershell solution would be simplest.

---

<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: [March 30, 2020, 8:52pm UTC](https://community.mp3tag.de/t/using-mp3tag-with-conditional-logic-windows-10/48379/2 "2020-03-30T20:52:59Z")

</div>

Have a look at the library function (although I think it is not really necessary for only 24k files).  
Also see the filter

> **[Filter and Search – Mp3tag Documentation](https://docs.mp3tag.de/filter/)**
>
> Documentation on Filter and Search and keywords to form complex filter expressions. Mp3tag is the universal Tag Editor.

e.g.  
artistsort PRESENT

There are no "empty" fields. A field with no data is simply not present.  
If MP3tag really stopped after just 3,500 files then I would check the files for integrity. I regularly treat thousands of files without any problems.  
Here is a thread with links to utility tools:

> [@How to check files for errors?](https://community.mp3tag.de/t/how-to-check-files-for-errors/44633):
>
> It’s required and often helps to reduce support cycles to check files for errors before filing a bug report. Symptoms of erroneous files are often missing or wrong bitrate or length audible blips or skips tags seem to be sticky and cannot be removed There are some really good tools to check the files for errors, namely MP3 Diags — identifies many different issues in MP3 files Website: [http://mp3diags.sourceforge.net](http://mp3diags.sourceforge.net) Download: [MP3 Diags - Getting MP3 Diags](http://mp3diags.sourceforge.net/010_getting_the_program.html#binWindows) If the font size in MP3 Diags is …

---

<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: [April 3, 2023, 7:31am UTC](https://community.mp3tag.de/t/using-mp3tag-with-conditional-logic-windows-10/48379/3 "2023-04-03T07:31:07Z")

</div>

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