Execute program erro

Hi,

I am using FB 5.5.0.284.

I try to run a 'Execute Program'  action like with "%BCB6DIR%\Bin\tlib.exe" as program.
where BCB6DIR is the system variable that point to c:\program files\Borland\CBuilder6.

I get an error message : Error: opening 'Files\Borland\CBuilder6\Bin\tlib.exe

The path is not ok. I tried to change the quote but cannot manage to get something working. The only way is to overide the BCB6DIR with the short pathname.

Any better way ?

thanks for your help.

Hi Yves,

Are you using the Execute Program action or the Run DOS Command action?

The Execute Program is the correct one to use, but Run DOS Command will give you an error like the one you’re describing (because it passes everything verbatim to the DOS command interpeter.)

Regards,

Angus

Hi,

I am using 'Execute program' action.

Sorry about the FB version : I am using 5.5.0.348

Hi Yves,

Are there any quotation marks anywhere in the variable contents or the path? If you look in the FinalBuilder log, there should be a line like:

Executing : c:\program files (x86)\borland\bds\4.0\bin\tlib.exe

Does it look like the line shown above?

Regards,

Angus