# Issue on file name resolution with variables

**URL:** https://www.finalbuilder.com/forums/t/issue-on-file-name-resolution-with-variables/3528
**Category:** Bugs
**Created:** [May 6, 2014, 2:25am UTC](https://www.finalbuilder.com/forums/t/issue-on-file-name-resolution-with-variables/3528 "2014-05-06T02:25:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jacksongomes](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/jacksongomes/32/118_2.png) [@jacksongomes](https://www.finalbuilder.com/forums/u/jacksongomes)
#### Post date: [May 6, 2014, 2:25am UTC](https://www.finalbuilder.com/forums/t/issue-on-file-name-resolution-with-variables/3528/1 "2014-05-06T02:25:51Z")

</div>

Hi Guys,  
  
Using FB 7.0.0.1442  
  
When FB resolves a file name that includes variables, it adds a slash at the end of the directory, which creates issues when running the script  
  
  
Rename [c:\data\build\output\flow\\FlowMonitor.Exe] to [c:\data\build\output\flow\\FlowMonitorTemp.Exe]  
&nbsp; &nbsp; Status: Error  
&nbsp; &nbsp; &nbsp; Date: 5/05/2014  
&nbsp; &nbsp; &nbsp; Time: 17:12:34:282  
&nbsp; &nbsp; &nbsp; &nbsp;End: 17:12:34:327  
&nbsp; Duration: 00:00:00:045  
  
Action Messages:  
File "c:\data\build\output\flow\\FlowMonitor.Exe" doesn't exist

Attached is an image of the IDE resolving the file name wrongly.  
  
Please advise.  
  
Cheers  
  
Jackson Gomes / Flow Software

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [May 7, 2014, 1:07am UTC](https://www.finalbuilder.com/forums/t/issue-on-file-name-resolution-with-variables/3528/2 "2014-05-07T01:07:17Z")

</div>

Hi Jackson,   
  
 Before the action is run what is the value of %TARGET%? How is that value being set in your script?
