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

Any suggestions? Thank you.

Alex
Next
Reply
Map
View

Click here to load this message in the networking platform