Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem copying file from inside exe file to SYS(2023) dir
Message
De
24/08/2005 15:02:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Problem copying file from inside exe file to SYS(2023) dir
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01043544
Message ID:
01043544
Vues:
41
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform