Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file + variable, error
Message
From
04/08/2008 09:00:05
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01336220
Message ID:
01336222
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
Try
txtPathName =  "DADOS\ECT\ECT" + DTOS (DATE ()) + ".TXT"
COPY FILE (ansFullPth) TO (txtPathName) TYPE SDF
>I teste
>
>COPY FILE &anxFullPth TO "DADOS\ENVIO.DBF"
>
>works fine
>
>Then
>
>txtPathName = "DADOS\ECT\" + "ECT" + CHRTRAN(DTOC(DATE()),"/","") + ".TXT"
>COPY FILE &anxFullPth TO txtPathName
>
>Returns:
>
>"command contains unrecognized phrase/keyword"
>
>Also tried
>
>COPY FILE &anxFullPth TO &txtPathName
>
>***** &anxFullPth is the file to be copied with its full path
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform