> >>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
Depending on the contents of the file, you may want to change this to:
COPY /B %1 LPT1
You may also want to delete this file after you're done. The final
result is:
@ECHO OFF
COPY /B %1 LPT1
ERASE %1
EXIT
(the last line forces the DOS window to close, even if the .PIF
properties are incorrectly set).