# Using Variables as FileNames in Mercurial

**URL:** https://www.finalbuilder.com/forums/t/using-variables-as-filenames-in-mercurial/2035
**Category:** Discussion
**Created:** [October 5, 2012, 5:34am UTC](https://www.finalbuilder.com/forums/t/using-variables-as-filenames-in-mercurial/2035 "2012-10-05T05:34:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![uraabe](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/uraabe/32/2502_2.png) [@uraabe](https://www.finalbuilder.com/forums/u/uraabe)
#### Post date: [October 5, 2012, 5:34am UTC](https://www.finalbuilder.com/forums/t/using-variables-as-filenames-in-mercurial/2035/1 "2012-10-05T05:34:57Z")

</div>

When I want to specify a file for a Mercurial Add or Commit action, I have the choice of "Choose Files" or "Select Pattern". In case of "Choose File" the dialog doesn't let me a variable for the file name. How am I supposed to do this?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 16, 2012, 2:48am UTC](https://www.finalbuilder.com/forums/t/using-variables-as-filenames-in-mercurial/2035/2 "2012-10-16T02:48:11Z")

</div>

Hi Uwe   
  
 I have modified the actions so the files field is now a memo rather than a list box, and it supports variables :   
  
 [http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700\_2041.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_2041.exe)
