Run in DOS box, Win 2003, works fine.
S:\Somedir>"C:\Program Files\Borland\Delphi7\Bin\DCC32.EXE" /B "S:\PV_9.8.0\PV\source\PV.DPR" /Q
Borland Delphi Version 15.0
Copyright (c) 1983,2002 Borland Software Corporation
221562 lines, 1.34 seconds, 5004120 bytes code, 47521 bytes data.
Works fine. No special variable setup was run to do this. I booted the machine, started a CMD prompt, changed to the directory and ran this command line.
FinalBuilder 7 (build 934), on the other hand, does this:
Running Delphi compiler....
Using Command Line : /B "S:\PV_9.8.0\PV\source\PV.DPR" /Q
Borland Delphi Version 15.0
Copyright (c) 1983,2002 Borland Software Corporation
Fatal: Could not create output file '$(BUILD_SANDBOX)\Runtime Files\Program Files\PV\Bin\PV.exe'
BUILD_SANDBOX is a global environment variable on the build machine, set to "S:\PV_9.8.0". It is used in the Delphi action definition to describe the location of the .DPR file and the directory to start in. Furthermore, I don't understand why it's not being expanded in this context - it doesn't appear anywhere in any Delphi file, meaning that FinalBuilder is passing it in, unexpanded.
I've been trying all kinds of things to get this to work, and I'm totally baffled. There is no other information provided.