Monday, December 11, 2017

LPT1 delphi

https://www.experts-exchange.com/articles/2161/Parallel-Port-Control-with-Delphi.html


https://forum.powerbasic.com/forum/user-to-user-discussions/programming/53623-how-to-capture-lpt1-hardware-port


Here is what i do to keep all the data. I am not running anything above XP as as workstation but i would not see why this would not work on any windows os.

Basically create a spooled printer directory where the spooled data is not erased.



First, make sure in network connections you have installed File and Printer Sharing. If you do not want other computers to access your shares on the computer, then you do not have to Check the box, but the protocol does have to be installed. I would thing the Client for Microsoft NetwoC=F[does too.

1 Create a printer. I use the printer driver, Generic/Text Only
2. Point the printer port to NUL: port. If the NUL: port does not exist, create it in 
3.Create a share on the printer. I like to call it TXT2FILE. I also name my printer TXT2FILE.
4.Create a directory on the computer where you want to capture the printer output. I create one called C:\TXT2FILE.
5. In the printer properties, set the printer to keep printed documnets.
6. In the registry, edit the spooled directory for that particular printer to the directory you created in line 4.



Now to use the shared printer, redirecting from whatever port(LPT) you want to use. Maybe even all.
NET USE LPT1 \\COMPUTERNAME\TXT2FILE
NET USE LPT2 \\COMPUTERNAME\TXT2FILE
NET USE LPT3 \\COMPUTERNAME\TXT2FILE

Now all you have to do is manage this directory some.



http://www.andtechnologies.com/index.php?q=how-purchase/pricing