Set working drive for entire finalbuilder server process?

Referencing: Finalbuilder server, 6.1.0.467

 

I have a bit of a challenge, and wonder if y'all might be able to assist.

Our fb projects are large ish (500-1000 actions), and make heavy use of relative paths. E.g. in an action, the path to a file is usually:

\directory\subdir\filename.ext

E.g. there is no drive letter at the beginning.

The way we do this is:

1) drop a ton of files into c:\develop\v5.0\

2) now we do a SUBST like this: subst j: c:\develop\v5.0\

3) Now j: is laid out the way we want, and we do all our work using relative paths.

4) The problem is that in many cases, fb server keeps reverting to c: as the current drive, breaking things.

 

To keep our projects portable (some environments do not use subst, and operate fully from c

Hi Sam,

We recommend using FinalBuilder variables to hold the path to the root drive and root directory for a project, and using them variables any time you need to reference a path.

For instance:

%ROOTDRIVE% = C:
%ROOTDIR% = %ROOTDRIVE%\Develop\5.0\

The problem with relying on the “current directory” approach is that the current directory can change during the build’s execution, or in your case, the current directory may not be where you’re expecting it to be (the reason it’s C:\ under FBServer is because the projects files are stored in %ALLUSERSPROFILE%\VSoft\FBServer6).

Regards,
Paul.