>>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
You can call a batch file that prints the file passed as a parameter such as:
@ECHO OFF
COPY %1 LPT1
Also to keep it from showing the DOS window, you can make a pif file that runs in background that calls the batch file.
Then in VFP, you can call the pif file using the /N2 option like:
!/N2 prntfile.pif test.dat