Variables That Use Relative Paths Not Expanding When Replacing Values in Files

I have a variety of variables with paths that are relative to the project directory. These paths are evaluated fine in FB but if for example I need to replace a token in a file with one of these variables, FB replaces the text with the relative path syntax which isn't correct. Actually, even in the watch windows, FB still shows the relative path which I would think it wouldn't. I would expect a full path. 

The first issue is the bigger problem.

Any thoughts

Thanks 

Relative paths are not really supported in FB, as they do not make sense. Relative paths in general rely on the concept of a current folder, something that doesn't exist in FB for many reasons, one of which is that it is multi-threaded. A better option is to use variables, and build up paths using variables, e.g :

Variable                         Default Value---------------------------------------------------------------------- SOURCEDRIVE             I:\SOURCEROOT             %SOURCEDRIVE%\SourceCodePROJECTROOT           %SOURCEROOT%\MyProject

BTW, FB has a built in variables for the path to the current FB project, FBPROJECT (full path to the project file) and FBPROJECTDIR (the folder where the project file lives).

HTH