>if it is VFP than no it can't be done - it is a known bug and can be found
>in the KB as well
>
>Arnon
>
>>Hi guys,
>>I am trying to print a text file directly to the LPT1 port
>>using the COPY TO command, and I am receiving
>>"Invalid path or filename", why?
>>I do this:
>>COPY FILE MyText.txt TO LPT1
>>I know this can be done, because I found it in the KB.
>>Thanks in advance.
>>
>>
It can be done and I use COPY FILE ... TO Lpt1 in one of my production systems.
The problem might be originated from the fact that particular workstation can have printer (network) set on another printer name (not Lpt1 but something like \\NY14\HP4). So you should be careful and check printer setting first, than try COPY command from DOS window, then try COPY command from VFP Command window and then implement it into your code. BTW, you can use APRINTER() to retrieve valid printer name.
Edward Pikman
Independent Consultant