Hi Rick,
Try to change your code to use name expression
lcCurrPath = FULLPATH("")
COPY FILE (reports+'\slim0c_c.frx') TO (lcCurrPath + 'slim.frx')
COPY FILE (reports+'\slim0c_c.frt') TO (lcCurrPath + 'slim.frt')
>Hi Sergey,
>For simplicity I left off part of my actual lines of code. The real lines read:
>COPY FILE reports+'\slim0c_c.frx' TO sys(2023)+'\slim.frx'
>COPY FILE reports+'\slim0c_c.frt' TO sys(2023)+'\slim.frt'
>
>where reports is a global variable containing the complete drive and path to the REPORTS directory of my application.
>Also, when the error occurs, I can go to the command window and issue the EXACTLY SAME command....and it works! I can then RESUME my program and everything is fine...until I get to that line the next time I need it.
>
>A couple lines before I get to the "Copy" command I "SET SAFETY OFF" then reset it to "ON" if it was on before...
>
>I hadn't thought of using the "COPY TO" and will do that next.
>
>btw - none of these files have their properties set to read-only or hiden or system or achive
>
>Thanks,
>I'll let you know if the COPY TO works.
>
< snip >
--sb--