Wow. Thank you very, very much.
Alex
>Try STRTOFILE(FILETOSTR()) combination.
>
>>I am having trouble copying a rich text format (RTF) file that is included in exe (in the project it shows among Other Files in Other tab) to temporary directory SYS(2023).
>>
>>The actual commands I use are:
>>
>>
>>lcArchivoModelo = ADDBS(SYS(2023)) + JUSTFNAME(Modelos.cArchivo)
>>TRY
>> lcSafety = SET("Safety")
>> SET SAFETY OFF
>> jc = [COPY FILE ] + JUSTFNAME(Modelos.cArchivo) + [ TO ] + lcArchivoModelo
>> &jc
>> llOK = .T.
>>CATCH
>> llOK = .F.
>>ENDTRY
>>
>>
>>Note:
>>Modelos.cArchivo = Modelos.cArchivo = 'Modelo_CartaTrabajo1.rtf '
>>
>>At the end llOK = .F. I also tried not using macro with same problem.
>>