>Hi friends
>
>I was happy when I got a matricial printer did what I wanted it to do with this instructions
>
>SET PRINTER TO FILE file.txt
>
>@ n,n say 'something'
>
>SET PRINTER TO
>
>COPY FILE file.txt TO LPTn.DOS
>
>And I drawed a winning smile at my client: Do yo want to star using my new system? Because I tested and worked fine.
>
>But when I did the first test in a net PC which doesn't have the printer directly connected, matricial printer bursted out laughing.
>
>Does anyone know any other great trick?
Assuming the printer is connected to a computer "ServerName", and it's available using a share name "MatrixPrinter", then on your workstation you can redirect your LPTn printer port to that share:
REM From a CMD prompt run
NET USE LPTn \\ServerName\MatrixPrinter /persistent:y
Also, depending on how print jobs are spooled you may notice a 15 second delay between your COPY command and the start of the print job. This can be reduced by adjusting a registry key LPT_timeout:
https://technet.microsoft.com/en-us/library/cc959496.aspx . These days, with fast computers 2 seconds is probably a safe value.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up