# Discnumber Action

**URL:** https://community.mp3tag.de/t/discnumber-action/5793
**Category:** Support
**Created:** [November 25, 2007, 11:22am UTC](https://community.mp3tag.de/t/discnumber-action/5793 "2007-11-25T11:22:01Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![mville](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mville/32/9437_2.png) [@mville](https://community.mp3tag.de/u/mville)
#### Post date: [November 25, 2007, 11:22am UTC](https://community.mp3tag.de/t/discnumber-action/5793/1 "2007-11-25T11:22:01Z")

</div>

I want to populate the Discnumber tag from a string in the directory name.

e.g.

If directory = 'Greatest Hits' then Discnumber = 01  
If directory = 'Greatest Hits CD1' then Discnumber = 01  
If directory = 'Greatest Hits CD2' then Discnumber = 02  
If directory = 'Greatest Hits CD3' then Discnumber = 03

etc.

I think I need to use an Action, probably Format Value but I'm not sure what to enter in the Format String field.

Please can anyone help?

Ta

mville

---

_[View the full topic](https://community.mp3tag.de/t/discnumber-action/5793)._
