Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't print directly to LPT1
Message
From
24/06/1997 23:24:43
 
 
To
24/06/1997 19:02:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00037511
Message ID:
00037647
Views:
34
> >>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).
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Previous
Reply
Map
View

Click here to load this message in the networking platform