# Checking the existence of a podcast folder

**URL:** <https://community.mp3tag.de/t/checking-the-existence-of-a-podcast-folder/17832>\
**Category:** Support\
**Created:** [April 9, 2016, 1:07pm UTC](https://community.mp3tag.de/t/checking-the-existence-of-a-podcast-folder/17832 "2016-04-09T13:07:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)\
**Post date:** [April 9, 2016, 1:07pm UTC](https://community.mp3tag.de/t/checking-the-existence-of-a-podcast-folder/17832/1 "2016-04-09T13:07:22Z")

</div>

I store folder names for my mp3 albums in small .mp3 files (long story). I want to validate these names against the actual folders (which are on multiple drives). My first thought was to run the following export config against the list of small .mp3's:

$filename($getEnv('USERPROFILE')'\desktop\FolderNameCheck.bat',UTF-8)  
echo off  
chcp 1254$loop(%\_folderpath%)  
IF NOT EXIST "%drive%%\_filename%" echo %\_filename% _ **MISSING** _$loopend()  
pause

Unfortunately the chcp command doesn't work with IF NOT EXISTS so non-ASCII characters in folder names show up as errors (lots of them).

Any thoughts on how I might go about this task?

---

<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:** [April 9, 2016, 2:00pm UTC](https://community.mp3tag.de/t/checking-the-existence-of-a-podcast-folder/17832/2 "2016-04-09T14:00:27Z")

</div>

I am not sure what you want to compare.  
If you want to test if the data in e.g. %album% is matched by the folder name (or parts of the path), then you can check that per file.

To find folders without such a file might be done with 2 steps:  
first a dir command that lists the existing files to a file  
second a dir command that lists all folders to a file  
You then sort by the name and get a list that shows the gaps.

---

<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:** [April 9, 2016, 2:04pm UTC](https://community.mp3tag.de/t/checking-the-existence-of-a-podcast-folder/17832/3 "2016-04-09T14:04:42Z")

</div>

> [@rko31415](#):
>
> ... ,UTF-8) ...

Write the .bat or .cmd file encoded as ANSI, then try again.  
After switching to CP1254 you may try the function $ansi(%\_filename%)

DD.20160409.1815.CEST

---

<div class="post-metadata">

**Author:** ![rko31415](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@rko31415](https://community.mp3tag.de/u/rko31415)\
**Post date:** [April 9, 2016, 6:21pm UTC](https://community.mp3tag.de/t/checking-the-existence-of-a-podcast-folder/17832/4 "2016-04-09T18:21:21Z")

</div>

Coding in ANSI did the trick! Thanks a bunch. You guys (gals?) are great.  
K

---

<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:** [February 9, 2026, 12:26pm UTC](https://community.mp3tag.de/t/checking-the-existence-of-a-podcast-folder/17832/5 "2026-02-09T12:26:11Z")

</div>

Closed on February 9, 2026, 12:26pm UTC


