# Removing first 2 directories from Path column

**URL:** <https://community.mp3tag.de/t/removing-first-2-directories-from-path-column/62469>\
**Category:** Support\
**Created:** [October 19, 2023, 2:14pm UTC](https://community.mp3tag.de/t/removing-first-2-directories-from-path-column/62469 "2023-10-19T14:14:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_2](https://community.mp3tag.de/user_avatar/community.mp3tag.de/john_2/32/15116_2.png) [@john\_2](https://community.mp3tag.de/u/john_2)\
**Post date:** [October 19, 2023, 2:14pm UTC](https://community.mp3tag.de/t/removing-first-2-directories-from-path-column/62469/1 "2023-10-19T14:14:24Z")

</div>

Hello! How do I remove the first two directories in my path column for tidiness sakes? E & Music will always be a constant and I need all the space I can get.

 ![path](https://community.mp3tag.de/uploads/default/original/2X/2/212084e907e6c9b028bd5fa1cd99f76164f48df3.png)

---

<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:** [October 19, 2023, 3:16pm UTC](https://community.mp3tag.de/t/removing-first-2-directories-from-path-column/62469/2 "2023-10-19T15:16:37Z")

</div>

You can rename the current directory with an absolute path so that the current directory is moved several levels up.  
The parent directory will be left untouched so that empty folders could be the result.

To rename a directory, use an action of the type "Format value" for \_DIRECTORY with e.g.  
Format string: `E:\music\%_directory%`

---

<div class="post-metadata">

**Author:** ![john\_2](https://community.mp3tag.de/user_avatar/community.mp3tag.de/john_2/32/15116_2.png) [@john\_2](https://community.mp3tag.de/u/john_2)\
**Post date:** [October 19, 2023, 5:48pm UTC](https://community.mp3tag.de/t/removing-first-2-directories-from-path-column/62469/3 "2023-10-19T17:48:00Z")

</div>

> [@ohrenkino](#):
>
> \_DIRECTORY

Thank you for your answer! I'm not sure this is exactly what I'm going for. I'm not trying to rename the directory, but just hide the first two directories specifically in the path column.

---

<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:** [October 19, 2023, 6:01pm UTC](https://community.mp3tag.de/t/removing-first-2-directories-from-path-column/62469/4 "2023-10-19T18:01:23Z")

</div>

You can define the colums as you like.  
So, if you want to see only the folder name, then set in the column definition  
Value: `%_directory%`  
instead of `%_path%`.

Or use a scripting function to cut the displayed data, e.g.  
Value: `...$right(%_folderpath%,15)`  
which displays the 15 rightmost characters of the path.  
Just to give you an idea.  
You open the column settings dialoge with a right-click on the column header \> Modify...

---

<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:** [November 18, 2023, 6:01pm UTC](https://community.mp3tag.de/t/removing-first-2-directories-from-path-column/62469/5 "2023-11-18T18:01:35Z")

</div>

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