# Escape characters

**URL:** https://www.finalbuilder.com/forums/t/escape-characters/508
**Category:** Discussion
**Created:** [June 26, 2007, 3:28am UTC](https://www.finalbuilder.com/forums/t/escape-characters/508 "2007-06-26T03:28:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 26, 2007, 3:28am UTC](https://www.finalbuilder.com/forums/t/escape-characters/508/1 "2007-06-26T03:28:26Z")

</div>

Hi,

I'm trying to copy files to a network drive (i.e. \\RemoteServer\D$). I get an error when FinalBuilder parses from \\%TargetServer%\D$ to \\\D$,

whereas %TargetServer% is the variable that holds the name of target server.

Any help is appreciated.

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 27, 2007, 1:21am UTC](https://www.finalbuilder.com/forums/t/escape-characters/508/2 "2007-06-27T01:21:20Z")

</div>

Hi Hung,   
  
 Sorry to hear you’re having problems. What action are you using to copy the files? Are you sure that the TargetServer variable has been initialised to the proper values?   
  
 (Hint: You can use a Log Variable Values action to quickly see the value of a variable at runtime.)   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 27, 2007, 4:40am UTC](https://www.finalbuilder.com/forums/t/escape-characters/508/3 "2007-06-27T04:40:32Z")

</div>

I used Copy File(s) action. When I have my mouse over it, it shows the correct path. \\DEV\D$\...

\\%TargetServer%\D$\Interface.NET\DeviceServerService

Copying files : C:\Build\05.15.03\Compiled\Interface.NET Framework V1.0\DeviceServer\WinService\*.\* -\> \\\D$\Interface.NET\DeviceServerService  
Failed to copy File : C:\Build\05.15.03\Compiled\Interface.NET Framework V1.0\DeviceServer\WinService\Hilton.PM.AppServer.BE.dll -\> \\\D$\Interface.NET\DeviceServerService\Hilton.PM.AppServer.BE.dll  
Win32 Error : You were not connected because a duplicate name exists on the network. Go to System in Control Panel to change the computer name and try again  
0 Files Copied.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [June 27, 2007, 6:06am UTC](https://www.finalbuilder.com/forums/t/escape-characters/508/4 "2007-06-27T06:06:16Z")

</div>

Hi Hung,   
  
 It looks like the %TargetServer% variable is blank when the Copy File(s) action is running. Try adding a watch on that variable and a breakpoint on the Copy Files action so you can inspect the value of the variable before the action runs. Is it possible that the TargetServer variable is being set to blank by one of your other actions?   
  
 .t8

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 27, 2007, 5:53am UTC](https://www.finalbuilder.com/forums/t/escape-characters/508/5 "2007-06-27T05:53:48Z")

</div>

I have to add a "Set Variable" action to set it explicitly and it works. Thanks.

I also have an unrelated question. I want to get source code from SourceSafe by label. I set %BuildVersion% to 00001, but it is interpreted as 1 with leading zeros ommitted. How do I have leading zeros included? Thanks.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [June 28, 2007, 1:29am UTC](https://www.finalbuilder.com/forums/t/escape-characters/508/6 "2007-06-28T01:29:21Z")

</div>

Hi Hung,   
  
 Firstly, about the variable value issue. In FinalBuilder each variable has a Default Value and a Current Value. You can also choose which of these you want to see in the UI when you hover over a field that contains a variable - the setting is in Tools menu | Options | FinalBuilder category | Variables | Design Time Variables.   
  
 As for variable types, by default FinalBuilder tries to figure out what type a variable is, so in this case it’s identified 00001 as an integer. What you need to do is use the “Set Variable” action and then use the “Force Type” options at the bottom of the dialog to force it as a string.   
  
 hth.   
 .t8

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 28, 2007, 4:21am UTC](https://www.finalbuilder.com/forums/t/escape-characters/508/7 "2007-06-28T04:21:03Z")

</div>

I have it resolved. Thanks.
