Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy File - strange behavior
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00594099
Message ID:
00594578
Views:
30
Hi Sergey,
I switched to the COPY TO and had the same results...kinda...
My error now says "Error 1111 - Invalid File Descriptor" .... oh well...

I'll try changing my code to use name expression, but for now we'll just disable the problem call.

Thanks,
Rick


>Hi Rick,
>
>Try to change your code to use name expression
>* Get current directory including drive letter and ending backslash
>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 >
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform