Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem copying file from inside exe file to SYS(2023) d
Message
 
 
To
24/08/2005 15:02:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01043544
Message ID:
01043546
Views:
10
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.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform